[OpenBIOS] [PATCH v2 05/10] ppc: Fix heap top
Andreas Färber
andreas.faerber at web.de
Mon Oct 11 14:47:40 CEST 2010
Don't let the client stack and the heap overlap.
v2:
* Initial.
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
arch/ppc/qemu/ofmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/qemu/ofmem.c b/arch/ppc/qemu/ofmem.c
index 500752b..a45c96c 100644
--- a/arch/ppc/qemu/ofmem.c
+++ b/arch/ppc/qemu/ofmem.c
@@ -97,7 +97,7 @@ get_ram_bottom( void )
static ucell get_heap_top( void )
{
- return get_hash_base() - (32 + 64) * 1024;
+ return get_hash_base() - (32 + 64 + 64) * 1024;
}
static inline size_t ALIGN_SIZE(size_t x, size_t a)
--
1.7.3
More information about the OpenBIOS
mailing list