Same as hrev43457 (- the error) but for the bootloader heap.

This commit is contained in:
Michael Lotz 2011-12-10 19:15:10 +01:00
parent 80e6a84bf0
commit c8a48d783c

View File

@ -8,6 +8,7 @@
#include <boot/platform.h>
#include <util/kernel_cpp.h>
#include <malloc.h>
#ifdef HEAP_TEST
# include <stdio.h>
#endif
@ -329,6 +330,15 @@ malloc(size_t size)
}
void *
memalign(size_t alignment, size_t size)
{
// pseudo alignment by just upping the size
size = (size + alignment - 1) & ~(alignment - 1);
return malloc(size);
}
void*
realloc(void* oldBuffer, size_t newSize)
{