Skip to content

Commit e501494

Browse files
Norbert Fabritiusadamgreig
Norbert Fabritius
authored andcommitted
Skip .bss memory init if zero-init-ram is active
1 parent 4bf9ef4 commit e501494

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
@@ -550,6 +550,7 @@ cfg_global_asm! {
550550
"bl __pre_init",
551551

552552
// Initialise .bss memory. `__sbss` and `__ebss` come from the linker script.
553+
#[cfg(not(feature = "zero-init-ram"))]
553554
"ldr r0, =__sbss
554555
ldr r1, =__ebss
555556
movs r2, #0

0 commit comments

Comments
 (0)