Skip to content

Commit da41f39

Browse files
author
Norbert Fabritius
committed
Skip .bss memory init if zero-init-ram is active
1 parent 10bff49 commit da41f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ cfg_global_asm! {
553553
mov lr, r4",
554554

555555
// Initialise .bss memory. `__sbss` and `__ebss` come from the linker script.
556+
#[cfg(not(feature = "zero-init-ram"))]
556557
"ldr r0, =__sbss
557558
ldr r1, =__ebss
558559
movs r2, #0

0 commit comments

Comments
 (0)