Page 1 of 1
PC rebooting in pmode
Posted: Mon Oct 13, 2003 7:25 am
by Maxpayne
Whenever i try to switch over to pmode in bootloader
PC simply restsrts .
Anyone there to help me ?
bye
Re:PC rebooting in pmode
Posted: Mon Oct 13, 2003 8:06 am
by Pype.Clicker
basically, the 386+ cpu will reboot automatically if a "tripple fault" condition is encountered.
In other words, when something got wrong in pmode, you get an exception (page fault, general protection fault, division error, etc.). The cpu uses the interrupts mechansim to report the fault/error, but if it even fails to deliver the interrupt (for instance because your interrupt table is on a missing page), it will raise a "double fault" exception.
If another exception occurs while the CPU is trying to call the "double fault" exception handler, you're in tripple fault" condition, and the CPU resets.
Imho, the best way for you to locate your problem is to run your OS in a virtual PC like
bochs which should be able to give you additionnal information like the register contents at the exception, or the 'name' of the initial exception.