the following patch was just integrated into master:
commit 25dd2479c1890d45935d7dbfc14599385e1893dd
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Fri Jun 14 15:34:59 2013 +0200
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(a)secunet.com>
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
Reviewed-on: http://review.coreboot.org/3889
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h(a)gmx.de>
See http://review.coreboot.org/3889 for details.
-gerrit
Nico Huber (nico.h(a)gmx.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3889
-gerrit
commit 2a6ca04efc0260d3d37c6d73fe5496c41971fc8f
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Fri Jun 14 15:34:59 2013 +0200
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(a)secunet.com>
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
payloads/libpayload/libc/malloc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/payloads/libpayload/libc/malloc.c b/payloads/libpayload/libc/malloc.c
index c03cc73..851ef57 100644
--- a/payloads/libpayload/libc/malloc.c
+++ b/payloads/libpayload/libc/malloc.c
@@ -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)
the following patch was just integrated into master:
commit 2d4b4cafe62b43815806fa7145e647f9daca0d38
Author: Nico Huber <nico.huber(a)secunet.com>
Date: Fri Jun 14 15:26:49 2013 +0200
libpayload: Make heap code independent of its header size
Signed-off-by: Patrick Georgi <patrick.georgi(a)secunet.com>
Change-Id: Ie69ceb343494b7dd309847b7d606cb47925f68b6
Reviewed-on: http://review.coreboot.org/3888
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich(a)gmail.com>
Reviewed-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
See http://review.coreboot.org/3888 for details.
-gerrit