delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/15/07:07:07

Date: Tue, 15 Jun 1999 14:04:25 +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: <929439363.23288@www.remarq.com>
Message-ID: <Pine.SUN.3.91.990615140016.20254A-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:

>  * Force a jump to fff0:f000, the PC reset vector.

Recall that in DJGPP you are in protected mode, where return addresses 
are interpreted differently (as offsets from the CS segment base, not as 
seg:off pointers).  That's why the converted code GPFaults.

> So my question is: how can I do this in DJGPP, if at all?

Invoke Int 19h.  I don't remember whether you need to emit a literal 
instruction "INT 19h" or call via __dpmi_int, but one of these ways 
should work.  (The other one is deliberately blocked by CWSDPMI, for
some obscure reason.)

- Raw text -


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