Mail Archives: djgpp/2000/10/24/14:45:11
Charles Sandmann <sandmann AT clio DOT rice DOT edu> wrote:
>> Why not just add parameter "reserved DOS memory", then if (for example)
>> 240 of 640 is taken by DOS/TSRs and "reserved DOS memory" == 100 KB
>> CWSDPMI would allow to work with 250-300 MB instead of this hardcoded 128.
>> It would be a more flexible variant for nested programs too.
> There is already such a parameter which is defined when using DOS memory as
> DPMI memory. It's currently set for about 64Kb. Eventually I may just
> support that value with pagetables, too. But for now I want to make minimum
> changes and get it released.
VALLOC.C
{
...
#define SAVEPARA CWSpar.savepar /* If we use DOS memory for paging, amt to save */
...
static int alloc_pagetables(int mintable, int wanttable)
{
...
geninterrupt(0x21); /* lol == size of largest free memory block */
...
if (lol > wanttable*PAGE2PARA) { /* 8 will probably result in 5 user pt */
if (mem_avail > MINAPPMEM) /* 256K extended */
lol = wanttable*PAGE2PARA;
else {
if (lol > wanttable*PAGE2PARA+SAVEPARA)
lol -= SAVEPARA; /* Reserve extra DOS memory */
mem_avail += (lol >> 8) - wanttable;
}
}
...
}
...
}
So you say it will be supported for pagetable
- Raw text -