mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
ppc: Fix heap top
Don't let the client stack and the heap overlap. v2: * Initial. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@903 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Blue Swirl
parent
ca9e9b0230
commit
4e3639f8ac
@@ -97,7 +97,7 @@ get_ram_bottom( void )
|
|||||||
|
|
||||||
static ucell get_heap_top( 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)
|
static inline size_t ALIGN_SIZE(size_t x, size_t a)
|
||||||
|
|||||||
Reference in New Issue
Block a user