delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/10/18:53:11

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10112102349.AA16664@clio.rice.edu>
Subject: Alternate exit code to set psp
To: djgpp-workers AT delorie DOT com
Date: Mon, 10 Dec 2001 17:49:38 -0600 (CST)
Cc: acottrel AT ihug DOT com DOT au (Andrew Cottrell), eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
In-Reply-To: <10112102244.AA14310@clio.rice.edu> from "Charles Sandmann" at Dec 10, 2001 04:44:37 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

If you are feeling frisky in dpmiexcp.c (in src/libc/go32)
line 629, change assembly lines so it looks like:

  asm volatile("movb $0x51, %%ah
                int  $0x21
                movb $0x50, %%ah
                int  $0x21

(so we don't pass the psp any more, we do a getpsp call to decide
what to set it to).  This is changing the first line and inserting
the second line.  This code would need to be linked in the exit 
code of the raw coff file go32-v2 calls.

This is the sequence I've been testing with the binary patches
and it works well so far in testing.  It also should be harmless
if the interrupt is not extended - since it would return/set the
real mode psp.

- Raw text -


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