2007-07-05 16:01:31 +00:00
|
|
|
#include <common.h>
|
2007-07-05 16:01:29 +00:00
|
|
|
#include <init.h>
|
|
|
|
#include <mem_malloc.h>
|
2009-12-15 08:11:09 +00:00
|
|
|
#include <asm/barebox-arm.h>
|
2008-06-04 09:43:10 +00:00
|
|
|
#include <asm-generic/memory_layout.h>
|
2007-07-05 16:01:29 +00:00
|
|
|
|
2009-02-20 17:17:42 +00:00
|
|
|
static int arm_mem_malloc_init(void)
|
2007-07-05 16:01:29 +00:00
|
|
|
{
|
2008-06-04 09:43:10 +00:00
|
|
|
mem_malloc_init((void *)MALLOC_BASE,
|
|
|
|
(void *)(MALLOC_BASE + MALLOC_SIZE));
|
2007-07-05 16:01:31 +00:00
|
|
|
return 0;
|
2007-07-05 16:01:29 +00:00
|
|
|
}
|
|
|
|
|
2007-07-05 16:01:31 +00:00
|
|
|
core_initcall(arm_mem_malloc_init);
|