OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 5:29 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ring 0 from DJGPP?
PostPosted: Thu Apr 12, 2001 11:00 pm 
This question kinda goes in with my previous one:

Is it possible to enter pmode with djgpp and cwsdpmi,
and then alter a few things to be more like my
OS environment (ie, IDT at 0x0, GDT at 0x800)?

I ask this, 'cuz my OS is currently hanging, rebooting, etc.
from code I can't yet isolate, so I'm hoping to
recreate my OS environment in DGJPP, so at least
_THEN_ I might get some valid pmode info when it
crashes (like HOW, and WHERE!)

Thanks,
J.W.


Top
  
 
 Post subject: RE:ing 0 from DJGPP?
PostPosted: Thu Apr 12, 2001 11:00 pm 
>On 2001-04-13 17:40:26, J. Weeks wrote:
>This question kinda goes in with my previous one:
>
>Is it possible to enter pmode with djgpp and cwsdpmi,
>and then alter a few things to be more like my
>OS environment (ie, IDT at 0x0, GDT at 0x800)?

I think you can use the CWSDPR0.EXE DOS extender
(instead of CWSDPMI.EXE) to run at ring 0. Then
you can use the SGDT and SIDT instructions to
find out where the GDT and IDT are, and modify
them. I haven't tried this, though.



>
>I ask this, 'cuz my OS is currently hanging, rebooting, etc.
>from code I can't yet isolate, so I'm hoping to
>recreate my OS environment in DGJPP, so at least
>_THEN_ I might get some valid pmode info when it
>crashes (like HOW, and WHERE!)
>
>Thanks,
>J.W.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 108 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group