Mail Archives: djgpp/2001/04/23/20:32:05
I guess you need to use some DOS function to flush the disk (I guess
SMARTDRV) cache. And then reboot....
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/
<dan AT no DOT spam> wrote in message news:3ae4bc97 DOT 23562858 AT news DOT earthlink DOT net...
> 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 -