Skip to contentSkip to conversation

at91: simplify spl board_init_f function

PATCH In review Josh Wu 3 participants 4 messages Oct 23, 2015 – Nov 1, 2015

Subsystems (3)
lore
Share & tools
lore

Josh Wu

author
#0 lore raw

PATCH 1/1 at91: simplify spl board_init_f function

crt0.S do both memset the bss section and call board_init_r for us, so remove them from board_init_f().

---

 arch/arm/mach-at91/spl_atmel.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mach-at91/spl_atmel.c +0 -5
index 8ac5335..b2fb51d 100644
@@ -98,9 +98,4 @@ void board_init_f(ulong dummy)
 	preloader_console_init();
 
 	mem_init();
-
-	/* Clear the BSS. */
-	memset(__bss_start, 0, __bss_end - __bss_start);
-
-	board_init_r(NULL, 0);
 }
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/1 at91: simplify spl board_init_f function

In reply to Josh Wu
Quoted 4 lines · Josh Wu

crt0.S do both memset the bss section and call board_init_r for us, so remove them from board_init_f().

Quoted 20 lines

---

 arch/arm/mach-at91/spl_atmel.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mach-at91/spl_atmel.c +0 -5
index 8ac5335..b2fb51d 100644
@@ -98,9 +98,4 @@ void board_init_f(ulong dummy)
 	preloader_console_init();
 
 	mem_init();
-
-	/* Clear the BSS. */
-	memset(__bss_start, 0, __bss_end - __bss_start);
-
-	board_init_r(NULL, 0);
 }