BTW it isn't a standard method of resetting the CPU - it's a standard method of telling the BIOS what you want after the CPU is reset.... Wink
i didnt mean that particular detail was standard method of reseting, i meant the keyboard reset -- the system reset line is tied to the keyboard controller, and pulsing that line (i dont remember the exact method) will do exactly the same thing as pushing the reset button on the front of the computer (unless you tell it to do something different by placing the appropriate code into the CMOS -- which i only mentioned since the poster made a distinction between rebooting and resetting)
when i said 'standard method' i meant the keyboard controller, not the CMOS entries, sorry if that was a little confusing, but the keyboard controller reset should work on all systems
t would switche to PMode
Wow, really? With the first bit on register CR0 cleared (real mode)? If so, try to make a "triple fault" or something...
If anybody could have a time to test it,... Rolling Eyes Very Happy -.... besides, I don't program in PMode... Very Happy
inflater
it doesnt matter what mode your in (whether in RMode or PMode makes no difference) -- most of the BIOS boot code runs in PMode -- only returning to RMode for loading the bootsector (the CPU 'starts' in UMode, and requires an immediate switch to do anything useful -- generally entering PMode for most of the initialization and setup) but will happen when you jump to the old 8086/8 entry point, is BIOS-specific -- this is
not the real entry point for the actual BIOS -- in fact its not even in ROM -- its RAM where a portion of the BIOS has been copied to, and has been marked as read-only by the controller
so basically, in order to cold reset, it will
always enter PMode
with my mention of relying on the old GDTR for int19, its actually unlikely, but anything that can use the newer options, can very likely be written in PMode -- and int19 is supposed to be used only by bootcode -- and rarely used there except within the BIOS itself, so there really is no reason it couldnt assume that GDTR has been left alone -- which it may choose to use for USB booting, and will certainly use for CD booting in FDD-emulation mode