Change OFMEM to allocate memory from the top of RAM downwards.
commitda61112722c98a8551b8395b1baf494930d716fb
authormcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 30 Dec 2010 13:56:28 +0000 (30 13:56 +0000)
committermcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 30 Dec 2010 13:56:28 +0000 (30 13:56 +0000)
tree7ab374f5cbe43832584ff091891c099a03a711be
parent47e6c54f19c1c8e0b4564859638eaebf145f3eff
Change OFMEM to allocate memory from the top of RAM downwards.

At the moment OFMEM allocates memory from the bottom of RAM upwards, however many loaders/kernels initialise themselves in lower
memory areas which can cause them to be overwritten by subsequent memory allocations. Mimic the existing SPARC32 behaviour by
allocating physical and virtual memory from the top of RAM downwards.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@996 f158a5a8-5612-0410-a976-696ce0be7e32
libopenbios/ofmem_common.c