summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-01-17 10:42:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-17 11:05:14 +0100
commit420dab954cd7be9021e76045b1b28e739384397c (patch)
tree0d51b4ab726e39cf0fa006a82ecfbeae34de8bdf
parent92c1c6cfb1dc6cc310c32f4c82becd0518b4d823 (diff)
downloadbarebox-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.c5
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;