aboutsummaryrefslogtreecommitdiffstats
path: root/src/startup_stm32l476xx.s
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-03-25 21:16:33 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-03-25 21:16:33 -0400
commit603d04992cbf6c02cfc16f06ffab7d014d817634 (patch)
treebb31f0fe50f322c44a6d637b55cc02583b5b08d2 /src/startup_stm32l476xx.s
parent5c5c93db40c6412fb46a09383640db01b4c6db4e (diff)
added licensing
Diffstat (limited to 'src/startup_stm32l476xx.s')
-rw-r--r--src/startup_stm32l476xx.s10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/startup_stm32l476xx.s b/src/startup_stm32l476xx.s
index f7e18a4..b26ced5 100644
--- a/src/startup_stm32l476xx.s
+++ b/src/startup_stm32l476xx.s
@@ -57,10 +57,8 @@ defined in linker script */
.word _sdata
/* end address for the .data section. defined in linker script */
.word _edata
-/* start address for the .bss section. defined in linker script */
-.word _sbss
-/* end address for the .bss section. defined in linker script */
-.word _ebss
+
+.equ _estack, 0x20018000
.equ BootRAM, 0xF1E0F85F
/**
@@ -94,7 +92,7 @@ LoopCopyDataInit:
adds r2, r0, r1
cmp r2, r3
bcc CopyDataInit
- ldr r2, =_sbss
+ ldr r2, =__bss_start__
b LoopFillZerobss
/* Zero fill the bss segment. */
FillZerobss:
@@ -102,7 +100,7 @@ FillZerobss:
str r3, [r2], #4
LoopFillZerobss:
- ldr r3, = _ebss
+ ldr r3, = __bss_end__
cmp r2, r3
bcc FillZerobss