ppc: Move malloc zone
commite493b7e10bb8f6924f8398792f701c4d7f1b3aea
authorblueswirl <blueswirl@f158a5a8-5612-0410-a976-696ce0be7e32>
Sat, 16 Oct 2010 17:36:08 +0000 (16 17:36 +0000)
committerblueswirl <blueswirl@f158a5a8-5612-0410-a976-696ce0be7e32>
Sat, 16 Oct 2010 17:36:08 +0000 (16 17:36 +0000)
tree175be20d9ef66519d1bca05dd8d86aa4a9ffa76d
parentd1fd4df10c6f0c6fc5bd6f0d1fdcd11f8e6e24e2
ppc: Move malloc zone

ofmem was fixed at 0x05400000, followed by the malloc zone. The latter was
bounded by the stack (now client stack), relative to the top of RAM.
An increase of RAM would therefore only enlarge the malloc zone.

Move the malloc zone below the client 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.

v2:
* Through the preceding patch the malloc zone goes below the client stack
  rather than below the stack. Adjust and prettify the illustration.

Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@905 f158a5a8-5612-0410-a976-696ce0be7e32
arch/ppc/qemu/ofmem.c
arch/ppc/qemu/start.S