9
0
Fork 0

ARM start.c: use sections.h header file for linker variables

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-01-17 10:42:34 +01:00
parent 92c1c6cfb1
commit 420dab954c
1 changed files with 2 additions and 3 deletions

View File

@ -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;