Re: HLA & OS development



On Tue, 11 Dec 2007 16:43:42 -0500, "Rod Pemberton"
<spamtrap@xxxxxxxxxx> wrote:


"Bob Masta" <NoSpam@xxxxxxxxxxx> wrote in message
news:475e88f5.1111502@xxxxxxxxxxxxxxxxxxxxx
On Mon, 10 Dec 2007 21:51:18 -0500, "Rod Pemberton"
<spamtrap@xxxxxxxxxx> wrote:

<snip>

3) any function which uses a privileged instruction won't be useable in
less
privileged code. e.g, use of rdtsc for some timing function won't be
useable by "user" code, aforementioned lgdt, lidt, etc.

RDTSC works just fine in user code.


It depends on privilege, specifically the state of the flag CR4.TSD...


Rod Pemberton


Bob Masta

DAQARTA v3.50
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, FREE Signal Generator
Science with your sound card!

.



Relevant Pages

  • Re: HLA & OS development
    ... RDTSC works just fine in user code. ... (Haven't tested Vista yet.) ... Scope, Spectrum, Spectrogram, FREE Signal Generator ...
    (comp.lang.asm.x86)
  • Re: HLA & OS development
    ... useable by "user" code, aforementioned lgdt, lidt, etc. ... RDTSC works just fine in user code. ... It depends on privilege, specifically the state of the flag CR4.TSD... ...
    (comp.lang.asm.x86)