Mail Archives: djgpp/1996/01/08/05:03:38
On Sun, 7 Jan 1996, Martynas Kunigelis wrote:
> after reading messages about cwsdpmi 9 and the interrupt handlers causing
> page faults I have the following question to C. Sandmann: suppose I don't
> use _go32_allocate_iret_wrapper but write my own intr. handler in assembler
> and give it the right DS by updating its code directly. Do I still have to do
> any locking or is code segment (text section) already locked in djgpp? I
> mean is any peace of *code* ever being paged out? If so, how do I lock a
> peace of memory where my handler resides?
I'd suggest that you first try to lock everything. There is a bit you
can set in _crt0_startup_flags that will cause all of the memory to be
locked. You can find the description of that bit in the library Info
docs. Then, after you debug your program with all the memory locked, you
can get to locking only the parts you need.
- Raw text -