delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/16/03:45:24

Date: Wed, 16 Jun 1999 10:42:49 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Clemens Valens <c DOT valens AT mindless DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Q: rebooting PC
In-Reply-To: <929459509.24968@www.remarq.com>
Message-ID: <Pine.SUN.3.91.990616104231.16595K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 15 Jun 1999, Clemens Valens wrote:

> I looked int 19h up in Gilluwe's "The Undocumented PC..."
> (2nd edition) and there it is stated that calling int 19h
> is NOT a good way to reboot and one should use the famous
> A20 pin.

ANY way of rebooting a PC from protected-mode code is ``not a good
way''.  The DPMI spec explicitly forbids to exit a protected-mode
program except by calling function 4Ch of Int 21h from protected
mode.

But since you need to reboot, you have no choice but doing these not
nice things.  As far as I know, Int 19h *does* in fact work from
DJGPP, van Gilluwe's text notwithstanding.  I suggest to try both ways
and see which one is best.

- Raw text -


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