delorie.com/archives/browse.cgi | search |
Date: | Sun, 5 Dec 1999 12:55:42 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Peter Johnson <locke AT mcs DOT net> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: NT4 DPMI BUG (303h, Allocate Real-Mode Callback)--ATTN: DJ Deloie, Shawn Hargreaves, Eli Zaretskii |
In-Reply-To: | <MPG.12b2640e2b0657f09896d4@news.cso.uiuc.edu> |
Message-ID: | <Pine.SUN.3.91.991205125445.11787B-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 Fri, 3 Dec 1999, Peter Johnson wrote: > 1) Get a selector from DPMI (function 0000h) > 2) Get the base address of the DS selector (DPMI function 0006h) > 3) Set the base address of the selector allocated in 1) to the value > found in 2) plus the offset of the registers variable (ARG2). > 4) Set the limit of the selector allocated in 1) to 32h (the size of the > dpmi registers structure). > 5) Pass the created selector and offset 0 as ES:EDI to 303h > > Obviously, this selector should be saved somewhere so d0304.s can free > it. > > I'm not very proficient in GAS assembly (I'm a NASM fan), but if no one > else wants to I can write a patch for the library files. Please post a patch for d0303.S and d0304.S. Thanks!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |