Re: return to real mode
anybody got some reliable, tested, known-good code for getting back to real mode? I'm to the point where I have a working GDT, and paging is turned off, but the last step -- turning off protection enable -- is not working for me. You want to be more explicit about why you want to get back? There are possibly alternatives, or other collateral damage issues that might be worth commenting on. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED] \\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: return to real mode
Mike Smith wrote: anybody got some reliable, tested, known-good code for getting back to real mode? I'm to the point where I have a working GDT, and paging is turned off, but the last step -- turning off protection enable -- is not working for me. You want to be more explicit about why you want to get back? There are possibly alternatives, or other collateral damage issues that might be worth commenting on. I have an almost-working code written yet in the 2.0.5 days. Then there was a guy Wee Teck [EMAIL PROTECTED] who asked a similar question and I sent my code to him. He has found the final bug and got it working. Maybe he is still on the list and can provide some information. I'm going to send my code and his fix off the list. -SB To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: return to real mode
the old boot code did it for calling the bios did it not? julian On Wed, 29 Sep 1999, Ronald G. Minnich wrote: anybody got some reliable, tested, known-good code for getting back to real mode? I'm to the point where I have a working GDT, and paging is turned off, but the last step -- turning off protection enable -- is not working for me. This is on a PII. Thanks ron To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: return to real mode
well, I'll go check that. I'm finding that there is fair amounts of code out there that is broken. Thanks to the wonderful PC bios you have a hard time sometimes telling the difference between code that crashes into the bios and code that actually works right, since the result is the same either way :-) rn To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
RE: return to real mode
On 29-Sep-99 John Baldwin wrote: GROUP CodeGroup _TEXT32, _TEXT16 ASSUMECS:CodeGroup, DS:_PMDATA SEGMENT _TEXT32 Byte Public Use32 'CODE' db 0EAh dd OFFSET ExitPM dw Sel_CS16 Here's the missing comment for the above: ; jmp far ExitPM This code has been tested (and works) on 386, 386, and Pentium. Presumably it should work on later chips as well. Should read: "386, 486, and Pentium..." ^^^ --- John Baldwin [EMAIL PROTECTED] -- http://www.cslab.vt.edu/~jobaldwi/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message