delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/23/20:32:05

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Rebooting the PC
Date: Mon, 23 Apr 2001 20:23:33 -0400
Organization: Global Crossing Telecommunications
Lines: 48
Sender: UNKNOWN AT 209-130-219-137 DOT nas1 DOT roc DOT gblx DOT net
Message-ID: <9c2gve$bci$1@node17.cwnet.frontiernet.net>
References: <3ae4bc97 DOT 23562858 AT news DOT earthlink DOT net>
NNTP-Posting-Host: 209-130-219-137.nas1.roc.gblx.net
X-Trace: node17.cwnet.frontiernet.net 988071726 11666 209.130.219.137 (24 Apr 2001 00:22:06 GMT)
X-Complaints-To: abuse AT frontiernet DOT net
NNTP-Posting-Date: 24 Apr 2001 00:22:06 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019