diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 10:59:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 11:05:14 +0100 |
commit | 3e892255b3071d4d624edb3d829eee1d579edc27 (patch) | |
tree | 3182f2a28978804e5a38a56962a6808ac7db8db8 /common/startup.c | |
parent | 1979b5d49cfd2e80a788c42fcba6ed057360e12d (diff) | |
download | barebox-3e892255b3071d4d624edb3d829eee1d579edc27.tar.gz barebox-3e892255b3071d4d624edb3d829eee1d579edc27.tar.xz |
startup: make debug printing of linker variables work again
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/startup.c b/common/startup.c index 0d7ccb9487..aa76cb75af 100644 --- a/common/startup.c +++ b/common/startup.c @@ -40,6 +40,7 @@ #include <environment.h> #include <reloc.h> #include <asm-generic/memory_layout.h> +#include <asm/sections.h> extern initcall_t __barebox_initcalls_start[], __barebox_early_initcalls_end[], __barebox_initcalls_end[]; @@ -50,8 +51,8 @@ static void display_meminfo(void) ulong mend = mem_malloc_end(); ulong msize = mend - mstart + 1; - debug("barebox code : 0x%08lX -> 0x%08lX BSS: -> 0x%08lX\n", - _barebox_start, _bss_start, _bss_end); + debug("barebox code: 0x%p -> 0x%p\n", _stext, _etext); + debug("bss segment: 0x%p -> 0x%p\n", __bss_start, __bss_stop); printf("Malloc space: 0x%08lx -> 0x%08lx (size %s)\n", mstart, mend, size_human_readable(msize)); #ifdef CONFIG_ARM |