Mail Archives: djgpp/1999/12/06/13:20:26
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 <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
To: Peter Johnson <locke AT mcs DOT net>
Cc: <djgpp AT delorie DOT com>
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!
- Raw text -