From 603d04992cbf6c02cfc16f06ffab7d014d817634 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 25 Mar 2018 21:16:33 -0400 Subject: added licensing --- src/startup_stm32l476xx.s | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/startup_stm32l476xx.s') 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 -- cgit v1.2.3