Mail Archives: djgpp/2002/05/29/03:47:35
Hi,
thanks for the info.
I just don't use a stack in the interrupt handler, only global vars.
Getting a size of a function is not that difficult in C, you can get
size by subtracting address of following function from address of the
function to lock (there are some helpers in the Allegro library).
Many thanks for clarifying that the wrapper functions ARE locked in
memory.
Lars
Eli Zaretskii schrieb:
>
> > From: Lars Erdmann <lars DOT erdmann AT arcor DOT de>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Wed, 29 May 2002 17:09:55 +0200
> >
> > I have successfully hooked a protected mode interrupt.
> > Now I have read in some note, that the protected mode wrapper that is
> > obtained via _go32_dpmi_alloc_iret_wrapper (or so) or via
> > _go32_chain_protected_mode_interrupt_vector (or so) is not locked by
> > djgpp.
>
> No, that's not true: the wrapper code is locked, but the code and the
> data of your handler are not. In particular, locking the stack is
> difficult, as is locking code of a C function.
>
> See section 18.9 of the DJGPP FAQ list for more details.
- Raw text -