diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 10:42:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 11:05:14 +0100 |
commit | 420dab954cd7be9021e76045b1b28e739384397c (patch) | |
tree | 0d51b4ab726e39cf0fa006a82ecfbeae34de8bdf | |
parent | 92c1c6cfb1dc6cc310c32f4c82becd0518b4d823 (diff) | |
download | barebox-420dab954cd7be9021e76045b1b28e739384397c.tar.gz barebox-420dab954cd7be9021e76045b1b28e739384397c.tar.xz |
ARM start.c: use sections.h header file for linker variables
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/cpu/start.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index b55df5dc87..e0fb7123cf 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -25,6 +25,7 @@ #include <asm/barebox-arm.h> #include <asm/system.h> #include <asm-generic/memory_layout.h> +#include <asm/sections.h> void __naked __section(.text_entry) exception_vectors(void) { @@ -40,8 +41,6 @@ void __naked __section(.text_entry) exception_vectors(void) ); } -extern char __bss_start, _end; - /* * The actual reset vector. This code is position independent and usually * does not run at the address it's linked at. @@ -108,7 +107,7 @@ void __naked __bare_init board_init_lowlevel_return(void) (unsigned int)&__bss_start - TEXT_BASE); /* clear bss */ - memset(&__bss_start, 0, &_end - &__bss_start); + memset(__bss_start, 0, __bss_stop - __bss_start); /* call start_barebox with its absolute address */ r = (unsigned int)&start_barebox; |