Skip re-zeroing BSS
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Thu, 24 Mar 2011 19:35:51 +0000 (15:35 -0400)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Thu, 24 Mar 2011 19:35:51 +0000 (15:35 -0400)
Redboot does not zero BSS, however U-Boot does not have this bug.
Therefore for the TS-7800 this is just unnecessary paranoia in the
startup code.

ts7800.S

index 33d7240..17101f3 100644 (file)
--- a/ts7800.S
+++ b/ts7800.S
@@ -1,21 +1,9 @@
 .global ts7800_start
 ts7800_start:
   ldr sp, =init_stack
-  bl zero_bss
   bl main
   b reboot
 
-zero_bss:
-  mov r3, #0
-  ldr r1, =__bss_start__
-  ldr r2, =__bss_end__
-
-zero_bss_loop:
-  cmp r1, r2
-  bxhs lr
-  strb r3, [r1], #1
-  b zero_bss_loop
-
 reboot:
   ldr r0, =0xf1020000
   ldr r1, [r0, #0x108]