[OpenBIOS] [PATCH 5/5] Change OFMEM to allocate memory from the top of RAM downwards.
Andreas Färber
andreas.faerber at web.de
Tue Dec 21 22:37:54 CET 2010
Am 21.12.2010 um 11:38 schrieb Mark Cave-Ayland:
> 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 at siriusit.co.uk>
While I'm not against reversing the direction, your above statement
worries me. Our claim code should only claim free memory. So either
the respective boot loader doesn't actually claim the memory it's
using (the recent ppc bug that broke Haiku), or there's a bug in ofmem
that you're hiding by this change. Both directions should in theory
work, I believe.
Regards,
Andreas
More information about the OpenBIOS
mailing list