Mail Archives: djgpp/1999/10/03/10:13:23
On Fri, 1 Oct 1999, Alex Mendes da Costa wrote:
> I understand pretty much what to do after reading through
> the FAQ but the only bit I don't understand is the section which reads:
> "Lock all the memory your handler touches and the code of the handler
> itself and any function it calls with a series of calls to
> __dpmi_lock_linear_region".
>
> How do I know which regions to lock and how much of these to lock?
You need to lock the code of your handler, the code of any function
your handler calls, and every variable this code uses. Every function
that you lock is a separate region whose address is the address of the
function and whose size is the size of function's code. Every
variable is also a separate region. If your functions use the stack,
you need to lock the part of the stack they use as well.
Each region should be locked with a separate call to
__dpmi_lock_linear_region.
- Raw text -