[OpenBIOS] [PATCH, RFC 4/6] ppc: Move malloc zone

Andreas Färber andreas.faerber at web.de
Mon Oct 11 13:02:53 CEST 2010

Am 11.10.2010 um 00:54 schrieb Andreas Färber:

> ofmem was fixed at 0x05400000, followed by the malloc zone.
> The latter was bounded by the stack, relative to the top of RAM.
> An increase of RAM would therefore only enlarge the malloc zone.
> Move the malloc zone below the stack, with a fixed size of 2 MiB.
> The size is derived from the memory map depicted in ofmem.c;
> having a fixed size leaves room for memory claim'ed by clients
> and by OpenBIOS.
> Cc: Alexander Graf <agraf at suse.de>
> Signed-off-by: Andreas Färber <andreas.faerber at web.de>

Patch is flawed wrt the client stack. Previous calculation had an  
overlap between malloc zone and client stack that needs to be fixed.
Thus, the malloc zone better goes below the client stack than below  
the stack. The addis r1, r1, -96 in start.S still looks wrong.


More information about the OpenBIOS mailing list