summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/startup.s
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-26 23:54:35 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-26 23:54:35 +0100
commite39faba05eb205b964704115a1de89989e9638a9 (patch)
treeceecca98bba79323d4035cda15406103329ee99e /arch/arm/lpc17xx/startup.s
parent52cb89c3853f42d4cab77814e6e35c1f60f20250 (diff)
Merging the two ldscripts into one, creating better bss support, and cleaning the bss section in the boot phase.
Diffstat (limited to 'arch/arm/lpc17xx/startup.s')
-rw-r--r--arch/arm/lpc17xx/startup.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lpc17xx/startup.s b/arch/arm/lpc17xx/startup.s
index 6ad4127..6aced2c 100644
--- a/arch/arm/lpc17xx/startup.s
+++ b/arch/arm/lpc17xx/startup.s
@@ -140,6 +140,11 @@ __cs3_reset_cortex_m:
MOV R2, R4
BL memcpy
+ LDR R0, =__bss_ram_begin
+ MOV R1, #0
+ LDR R2, =__bss_ram_len
+ BL memset
+
LDR R0, =SystemInit
BLX R0
LDR R0,=_start