🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #547

Re: Reboot from protected mode

#547
From: bill parquet
Date: Thu, 30 Jul 1992 03:13
15 lines
1102 bytes
sankey@unixg.ubc.ca (Todd Sankey) writes:
:  Does anyone have a description or code snippet or anything to
: describe how to reboot the PC from protected mode?

Rebooting and kicking the computer out of protected mode are pretty similar.

To reboot just do:  mov   al,0feh
		    out   64h, al

(It seems to be 100% effective on my 286, but it sometimes causes my 486
to crash).  To get out of protected mode, there's a few outs to the CMOS
before the big fe->64 to kind of give the bios a resume command.  I don't
know what they are off the top of my head.  (BTW  You might want to 
HLT, jump back to the halt after that... It seems like overkill, but the
BIOS does it!)  
Technical Details
Message-ID: <1992Jul29.221323.9051@uoft02.utoledo.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!jupiter!billp
References: <sankey.711008151@unixg.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!jupiter!billp
Newsgroups: comp.os.msdos.programmer
Subject: Re: Reboot from protected mode
Message-ID: <1992Jul29.221323.9051@uoft02.utoledo.edu>
From: billp@jupiter.cse.utoledo.edu (bill parquet)
Date: 29 Jul 92 22:13:22 EST
References: <sankey.711008151@unixg.ubc.ca>
Nntp-Posting-Host: jupiter.cse.utoledo.edu
Lines: 15