Date: Sun, 5 Dec 1999 12:55:42 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Peter Johnson 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: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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!