Message-ID: <004e01bf3ff3$23853b00$0201a8c0@pv1.ca.home.com> From: "Dave Bloodgood" To: Cc: "Peter Johnson" , "Eli Zaretskii" References: Subject: Re: NT4 DPMI BUG (303h, Allocate Real-Mode Callback)--ATTN: DJ Deloie, Shawn Hargreaves, Eli Zaretskii Date: Mon, 6 Dec 1999 06:06:49 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Reply-To: djgpp AT delorie DOT com Some months ago you ( Eli ) and I had a "discussion" about a similar problem with exception handling in windows NT - in particular, I can't install a custom exception handler - without getting a similar sounding Dr Watson session. Is there a chance that this is a the heart of that problem also ? Dave ----- Original Message ----- From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp To: Peter Johnson Cc: Sent: Sunday, December 05, 1999 2:55 AM Subject: Re: NT4 DPMI BUG (303h, Allocate Real-Mode Callback)--ATTN: DJ Deloie, Shawn Hargreaves, Eli Zaretskii > > 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!