2012-09-05 15:52:12 +00:00
|
|
|
#include <common.h>
|
|
|
|
#include <init.h>
|
|
|
|
#include <memory.h>
|
|
|
|
#include <asm-generic/memory_layout.h>
|
2012-10-03 14:28:36 +00:00
|
|
|
#include <asm/sections.h>
|
2012-09-05 15:52:12 +00:00
|
|
|
|
|
|
|
static int display_meminfo(void)
|
|
|
|
{
|
|
|
|
ulong mstart = mem_malloc_start();
|
|
|
|
ulong mend = mem_malloc_end();
|
|
|
|
ulong msize = mend - mstart + 1;
|
|
|
|
|
2013-03-08 11:59:38 +00:00
|
|
|
pr_debug("barebox code: 0x%p -> 0x%p\n", _stext, _etext - 1);
|
|
|
|
pr_debug("bss segment: 0x%p -> 0x%p\n", __bss_start, __bss_stop - 1);
|
|
|
|
pr_info("malloc space: 0x%08lx -> 0x%08lx (size %s)\n",
|
2012-09-05 15:52:12 +00:00
|
|
|
mstart, mend, size_human_readable(msize));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
late_initcall(display_meminfo);
|