delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/04/22:24:58

Date: Thu, 5 Aug 1999 04:11:51 +0200 (METDST)
Message-Id: <199908050211.EAA28717@tyr.diku.dk>
From: Morten Welinder <terra AT diku DOT dk>
To: djgpp-workers AT delorie DOT com
CC: eliz AT is DOT elta DOT co DOT il
In-reply-to: <37A8643F.CCFFBD9A@softhome.net> (message from Laurynas Biveinis
on Wed, 04 Aug 1999 18:03:11 +0200)
Subject: Re: CPU ID program, second version
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990804162240 DOT 1514C-100000 AT is> <37A8643F DOT CCFFBD9A AT softhome DOT net>
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Just, FYI, this algorithm (setting AC flag, then ...) will not work in
all environments.  In particular, you have no guarantee that the AC
flag will be turned on if the underlying DPMI does not feel like it.
The manual page ought to say this.  I don't think a bulletproof
algorithm exists outside ring 0/real mode.

Also, your switch statement is incomplete -- add a default case and
call it "ix86" or something like that.

Morten

- Raw text -


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