delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/04/17:10:07

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <9907042107.AA14266@clio.rice.edu>
Subject: Ring 0
To: balazs AT tiszanet DOT hu
Date: Sun, 4 Jul 1999 16:07:12 -0600 (CDT)
Cc: djgpp AT delorie DOT com
X-Mailer: ELM [version 2.4 PL20]
Reply-To: djgpp AT delorie DOT com

> Is it possible to switch to ring 0 in DJGPP?
> (under plain DOS - i dont't want my code to be
> compatible with windows)
> I only need ring 0 for one function.
> I know about CWSDPR0, but i don't feel like recompiling
> all my code and libraries (i guess it's needed)

The easiest thing to do is to use CWSDPR0.  It should run
any normal DJGPP image without recompling.

If you want to use the normal image, you can allocate a
descriptor and set it's attributes using DPMI services to
be a RING 0 call gate to do what you need.  You would need
an Intel architecture manual to describe the details.

- Raw text -


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