Re: [Etherboot-developers] UNDI driver
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Michael B. <mb...@fe...> - 2003-05-21 16:54:59
|
> 1. Add arch/i386/firmware/pcbios/basemem.c, #ifdeffed with PCBIOS, > containing routines to allocate base memory in the BIOS-expected way > (i.e. by simply updating the value at 40:13). This is now in place. I had great fun tracking down why my allocated memory was being trodden on every time I did a printf(). Eventually discovered that get_memsizes() resets the position of the real mode stack to be the top of free base memory, which meant that my allocated base memory was being written all over as soon as _real_call got called. Now fixed in that I adjust real_mode_stack each time I allocate or free memory. Question: is there any reason why _real_call can't just calculate the stack base each time (by reading 40:13)? (This would work with PCBIOS, but I don't know about LinuxBIOS.) Michael |