Mail Archives: djgpp/2001/08/24/16:28:06
On Fri, 24 Aug 2001, Eli Zaretskii wrote:
[SNIP other stuff answered by DJ and Eli]
> > Can selectors and offsets be temporarily "mapped" into the ISR's data
> > space? I know one can do this with selectors that are created by the app
> > itself but I'm not sure if this might work when the selector and offset
> > are passed thru a interrupt call.
>
> Sorry, I don't understand what are you asking here. Could you please
> describe the situation in more detail and then tell what do you mean
> by ``temporarily mapping selectors and offsets'' into the ISR's data
> area?
Yes. I should try to be clearer here. I meant, can you have the ISR
receive a ptr to structure (say, thru FS:EBX)? This structure will also
contain ptrs (sel/off pairs) to data & methods (callbacks). Can these
callbacks actually be called? Grabbing data is no problem with
farpeek/poke but how do you execute a method outside of the ISR's own cs
selector? Would a (NASM style ASM) push/push/retf work?
push arg0
...
push methodOff
push methodSel
retf
Or is there some other DPMI approved way of doing this?
Thanks
Louis
- Raw text -