70f7691d41
end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
15 lines
299 B
C
15 lines
299 B
C
#include <common.h>
|
|
#include <init.h>
|
|
#include <memory.h>
|
|
#include <asm/barebox-arm.h>
|
|
#include <asm-generic/memory_layout.h>
|
|
|
|
static int arm_mem_malloc_init(void)
|
|
{
|
|
mem_malloc_init((void *)MALLOC_BASE,
|
|
(void *)(MALLOC_BASE + MALLOC_SIZE - 1));
|
|
return 0;
|
|
}
|
|
|
|
core_initcall(arm_mem_malloc_init);
|