[OpenBIOS] [commit] r903 - trunk/openbios-devel/arch/ppc/qemu

repository service svn at openbios.org
Sat Oct 16 19:36:01 CEST 2010


Author: blueswirl
Date: Sat Oct 16 19:36:00 2010
New Revision: 903
URL: http://tracker.coreboot.org/trac/openbios/changeset/903

Log:
ppc: Fix heap top

Don't let the client stack and the heap overlap.

v2:
* Initial.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>

Modified:
   trunk/openbios-devel/arch/ppc/qemu/ofmem.c

Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
==============================================================================
--- trunk/openbios-devel/arch/ppc/qemu/ofmem.c	Sat Oct 16 19:35:56 2010	(r902)
+++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c	Sat Oct 16 19:36:00 2010	(r903)
@@ -97,7 +97,7 @@
 
 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)



More information about the OpenBIOS mailing list