Same as hrev43457 (- the error) but for the bootloader heap.
This commit is contained in:
parent
80e6a84bf0
commit
c8a48d783c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user