Mail Archives: djgpp/2001/04/23/19:45:37
From: | dan AT no DOT spam
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Rebooting the PC
|
Message-ID: | <3ae4bc97.23562858@news.earthlink.net>
|
X-Newsreader: | Forte Free Agent 1.21/32.243
|
Lines: | 30
|
Date: | Mon, 23 Apr 2001 23:39:02 GMT
|
NNTP-Posting-Host: | 165.247.41.70
|
X-Complaints-To: | abuse AT earthlink DOT net
|
X-Trace: | newsread1.prod.itd.earthlink.net 988069142 165.247.41.70 (Mon, 23 Apr 2001 16:39:02 PDT)
|
NNTP-Posting-Date: | Mon, 23 Apr 2001 16:39:02 PDT
|
Organization: | EarthLink Inc. -- http://www.EarthLink.net
|
X-Received-Date: | Mon, 23 Apr 2001 16:37:38 PDT (newsmaster1.prod.itd.earthlink.net)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I'd like to reboot the PC:
- from a DJGPP program
- running with DPMI
- from DOS protected mode (Windows is not running; HIMEM is)
The reboot must:
- flush the disk cache first, and
- do a cold restart (it must go through BIOS initialization on the way back up).
Yes, I have read the FAQ http://www.delorie.com/djgpp/v2faq/faq22_26.html.
The problem is, it doesn't say whether the 3 methods meet my requirements. Plus,
I've seen reasons why NOT to use method 1.
I have, however, found this:
http://www.brokersys.com/snippets/REBOOT.ASM
It seems to do everything, but it's in Assembler - Intel assembler, which I
understand has to be converted to AT&T format for DJGPP. (arrrghhhh!!!!)
Can anyone help me either convert this to an assembler format that djgpp can
use, or convert it to C code using dpmi calls?
Thanks,
Dan
- Raw text -