diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 10:47:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-17 11:05:14 +0100 |
commit | be2893d5ef9b3c7192351dfdc1dff81baafde67f (patch) | |
tree | be5cb6f4d50805399c2fda7f533fc6dd2291e09d /arch/x86 | |
parent | 377d6ea1b68e661af87863913340631a0c69802f (diff) | |
download | barebox-be2893d5ef9b3c7192351dfdc1dff81baafde67f.tar.gz barebox-be2893d5ef9b3c7192351dfdc1dff81baafde67f.tar.xz |
x86: use sections.h header file for linker variables
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/boot/main_entry.c | 7 | ||||
-rw-r--r-- | arch/x86/lib/barebox.lds.S | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/boot/main_entry.c b/arch/x86/boot/main_entry.c index 5f199e985b..d1d8f34bc4 100644 --- a/arch/x86/boot/main_entry.c +++ b/arch/x86/boot/main_entry.c @@ -24,10 +24,7 @@ */ #include <string.h> - -/* These symbols are generated by the linker */ -extern char __bss_start; -extern char __bss_end; +#include <asm/sections.h> extern void start_barebox(void); @@ -39,6 +36,6 @@ extern void start_barebox(void); void uboot_entry(void) { /* clear the BSS first */ - memset(&__bss_start, 0x00, &__bss_end - &__bss_start); + memset(__bss_start, 0x00, __bss_stop - __bss_start); start_barebox(); } diff --git a/arch/x86/lib/barebox.lds.S b/arch/x86/lib/barebox.lds.S index 2917d2fa12..e0919a68ea 100644 --- a/arch/x86/lib/barebox.lds.S +++ b/arch/x86/lib/barebox.lds.S @@ -188,7 +188,7 @@ SECTIONS __bss_start = .; *(.bss*); *( COMMON ) - __bss_end = .; + __bss_stop = .; _end = .; } > barebox } |