www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/08/21:14:50

Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: yjtseng <yjtseng AT micron DOT com>
Date: Fri, 9 Apr 1999 02:10:49 +0000
MIME-Version: 1.0
Subject: RE: Help needed in getting CR0 under DOS
CC: djgpp AT delorie DOT com
X-mailer: Pegasus Mail for Win32 (v2.42a)
Message-Id: <E10VPrA-00020m-00.1999-04-09-02-13-17@mail4.svr.pol.co.uk>
Reply-To: djgpp AT delorie DOT com

On  8 Apr 99 at 15:14, yjtseng wrote:

> I don't know that the inline code is in protected mode or real mode when it
> is executed?

All your code is executed in protected mode, unless you load it 
into lower memory and use special DPMI functions to execute it.

> As to (2), maybe you are right but is there anyway to verify
> it? As to (3), yes, I use normal cwsdpmi.exe. Any document that I can access
> to see the difference between CWSDPR0 under DOS and CWSDPMI and how can I
> invoke it? Thanks.

See CWSDPMI.DOC.  CWSDPR0 runs your code in ring zero.  You can 
either stubedit your binary, or run CWSDPR0 before your program 
(which will preload it for just one run of the program, after 
which it will unload itself), or use the command line to load 
it permanently.  In either of the latter two situations the 
djgpp stub sees that a DPMI host is already present and doesn't 
try to load CWSDPMI.

-- 
George

- Raw text -


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