home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8164 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!jupiter!billp
  2. Newsgroups: comp.os.msdos.programmer
  3. Subject: Re: Reboot from protected mode
  4. Message-ID: <1992Jul29.221323.9051@uoft02.utoledo.edu>
  5. From: billp@jupiter.cse.utoledo.edu (bill parquet)
  6. Date: 29 Jul 92 22:13:22 EST
  7. References: <sankey.711008151@unixg.ubc.ca>
  8. Nntp-Posting-Host: jupiter.cse.utoledo.edu
  9. Lines: 15
  10.  
  11. sankey@unixg.ubc.ca (Todd Sankey) writes:
  12. :  Does anyone have a description or code snippet or anything to
  13. : describe how to reboot the PC from protected mode?
  14.  
  15. Rebooting and kicking the computer out of protected mode are pretty similar.
  16.  
  17. To reboot just do:  mov   al,0feh
  18.             out   64h, al
  19.  
  20. (It seems to be 100% effective on my 286, but it sometimes causes my 486
  21. to crash).  To get out of protected mode, there's a few outs to the CMOS
  22. before the big fe->64 to kind of give the bios a resume command.  I don't
  23. know what they are off the top of my head.  (BTW  You might want to 
  24. HLT, jump back to the halt after that... It seems like overkill, but the
  25. BIOS does it!)  
  26.