delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/02/15:30:07

From: "Tom St Denis" <tomstdenis AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <5BF60CD649EDD411A04600B0D049F53A544474 AT hydmail02 DOT hyd DOT wilco-int DOT com>
Subject: Re: Reseting / turning off computer ?
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
Message-ID: <xS307.78615$Mf5.21773917@news3.rdc1.on.home.com>
Date: Mon, 02 Jul 2001 19:23:09 GMT
NNTP-Posting-Host: 24.112.8.23
X-Complaints-To: abuse AT home DOT net
X-Trace: news3.rdc1.on.home.com 994101789 24.112.8.23 (Mon, 02 Jul 2001 12:23:09 PDT)
NNTP-Posting-Date: Mon, 02 Jul 2001 12:23:09 PDT
Organization: Excite AT Home - The Leader in Broadband http://home.com/faster
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Prashant Ramachandra" <rprash AT wilco-int DOT com> wrote in message
news:5BF60CD649EDD411A04600B0D049F53A544474 AT hydmail02 DOT hyd DOT wilco-int DOT com...
> On Monday, July 02, 2001 8:42 PM, Tom St Denis [SMTP:tomstdenis AT yahoo DOT com]
> wrote:
> |
> | reset a x86?
> |
> | jmp far ffff:0000
>
> Can't do that in protected mode. The DJGPP FAQ (section 22.26) has some
> details on this.
>
> See http://www.delorie.com/djgpp/v2faq/faq22_26.html#Reboot%20the%20PC

I've got it.

void reboot(void)
{
    printf("Hit reset.\n");
    for (;;) ;
}

Tom



- Raw text -


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