Mail Archives: djgpp-workers/1999/07/01/05:29:58
On Tue, 29 Jun 1999, Erik Berglund wrote:
> Nonetheless, I think I have some good news anyway:
> I changed the "alloc-delta" in crt0.S from 64 kbyte to 1 Mbyte
> (the amount that is allocated each time from DPMI),
> and now everything works! Even with non-unixy sbrk!
I'm not sure this is a good idea: it allocates too much memory from
the DPMI server.
Did you see whether the allocated blocks use high addresses in this
modified version? If not, you indirectly worked around the problem by
feeding `sbrk' with the low addresses, like in Unixy sbrk case.
> plp = lp->prev;
>
> The highest valid lp-value seems to be around 0x28a004,
> and therefore we get a "Page fault" error 0004
> when lp for some reason becomes 0x472450.
It would be nice to know how does this happen. Perhaps that will
unlock the problem.
- Raw text -