libpayload: Set heap's header size to 64-bit

For libpayload clients with larger memory needs (eg. FILO with integrated
flashrom) the current configuration isn't enough.

Change-Id: Ic82d6477c53da62a1325400f2e596d7d557d5d1e
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/3889
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Nico Huber 2013-06-14 15:34:59 +02:00 committed by Nico Huber
parent 2d4b4cafe6
commit 25dd2479c1
1 changed files with 1 additions and 4 deletions

View File

@ -37,9 +37,6 @@
* We're also susceptible to the usual buffer overrun poisoning, though the
* risk is within acceptable ranges for this implementation (don't overrun
* your buffers, kids!).
*
* The header format (hdrtype_t) supports heaps of up to 32MiB (given that int
* is 32 bits long).
*/
#define IN_MALLOC_C
@ -50,7 +47,7 @@ extern char _heap, _eheap; /* Defined in the ldscript. */
static void *hstart = (void *)&_heap;
static void *hend = (void *)&_eheap;
typedef unsigned int hdrtype_t;
typedef u64 hdrtype_t;
#define HDRSIZE (sizeof(hdrtype_t))
#define SIZE_BITS ((HDRSIZE << 3) - 7)