delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/11/10:25:29

Message-ID: <019201c2d1e1$b564e3d0$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: <djgpp AT delorie DOT com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1030210075002 DOT 7932C AT is> <b29tp3$1agvkq$1 AT ID-79865 DOT news DOT dfncis DOT de> <3e489301 DOT sandmann AT clio DOT rice DOT edu> <%v22a.45175$jM5 DOT 113869 AT newsfeeds DOT bigpond DOT com> <3E48F219 DOT 8FB9B40B AT yahoo DOT com> <dP72a.45469$jM5 DOT 114036 AT newsfeeds DOT bigpond DOT com>
Subject: Re: how to make a Timer
Date: Tue, 11 Feb 2003 16:24:45 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1123
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123
Reply-To: djgpp AT delorie DOT com

"Ben Peddell" <lightspeed85 AT hotmail DOT com> said:

> First, check the existence of cpuid. If it does not exist, then the tsc does
> not exist, so go to the normal pit routine. If cpuid does exist, then use it
> to determine the existence of the tsc. If it does not exist, then go to the
> normal pit routine. If the tsc does exist, then check for the existence of
> cr4. If it exists, then check the setting of the tsd (Time Stamp Disable)
> bit (bit 2).

How should we get value of CR4 under e.g. Windows? AFAICR, it's seems
to be virtualised and always returns 0.

Gisle V.

# rm /bin/laden 

/bin/laden: Not found 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019