Mail Archives: djgpp/1998/05/14/22:07:41
At 01:02 5/14/1998, Charles Sandmann wrote:
>> Since writing a TSR requires DPMI 1.0 calls, this would mean that you use
>> either CWSDPMI or 386Max, is it correct?
>
>The current prot mode TSR example does not use any DPMI 1.0 calls, so
>should run under most DPMI providers.
>
>> So I would advise to stay clear of memory allocation inside an interrupt.
>
>This is good advice. If you knew for sure what the maximum number of
>allocations was going to be, by malloc/free'ing that memory it would not
>require a call back to sbrk() and might work. Might, since the reentrancy
>issues.
But if you can do that, then you could just `malloc' it ahead of time and
hand it out with your own routines (and it could be as simple as a stack
implementation). So it's probably not worth the trouble.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -