www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/21/21:03:52

Message-ID: <329523E0.58D2@gbrmpa.gov.au>
Date: Fri, 22 Nov 1996 11:54:28 +0800
From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Reply-To: leathm AT gbrmpa DOT gov DOT au
Organization: Great Barrier Reef Marine Park Authority
MIME-Version: 1.0
To: Kevin Baca <kbaca AT skygames DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: pentium RDMSR instruction
References: <571ku3$gf1 AT news2 DOT noc DOT netcom DOT net> <3294F710 DOT 32E6 AT skygames DOT com>

> The real problem (I think) is that these instructions are priveleged
> instructions and therefore can only be executed from a ring 0 process
> (e.g. kernel code).

Yep...
 
> You need a DPMI host that allows your program to run in ring 0.  I'm not
> sure if Windows does this.  I know CWSDPMI does not.  But CWSDPR0 does.
> You should be able to get CWSDPRO.EXE from the same place you got
> CWSDPMI.EXE (I think).

I tried to implement these under Win95, and they just wouldn't do it...
The program crashed about 3 times, and I assumed it was because '95
didn't let you run stuff at ring 0. I then tried it under cwsdpr0 and 
got it to work. :)  Mind you, it crashed the first time under cwsdpr0
as well, and I didn't bother checking after I fixed it under 95...

Leathal.

- Raw text -


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