From be2893d5ef9b3c7192351dfdc1dff81baafde67f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 17 Jan 2011 10:47:03 +0100 Subject: x86: use sections.h header file for linker variables Signed-off-by: Sascha Hauer --- arch/x86/boot/main_entry.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'arch/x86/boot') 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 - -/* These symbols are generated by the linker */ -extern char __bss_start; -extern char __bss_end; +#include 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(); } -- cgit v1.2.3