diff options
author | 2023-01-11 14:01:56 +0100 | |
---|---|---|
committer | 2023-02-17 18:21:30 +0000 | |
commit | e50149446c6af5919f928317840716c442a342fe (patch) | |
tree | b9fcfe566865ca2b9bf42a2837ae86d742ea5535 | |
parent | 4bf9ef46bae593974e00b3ca072341586d492164 (diff) | |
download | cortex-m-e50149446c6af5919f928317840716c442a342fe.tar.gz cortex-m-e50149446c6af5919f928317840716c442a342fe.tar.zst cortex-m-e50149446c6af5919f928317840716c442a342fe.zip |
Skip .bss memory init if zero-init-ram is active
-rw-r--r-- | cortex-m-rt/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 6f9f299..30fe37e 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -550,6 +550,7 @@ cfg_global_asm! { "bl __pre_init", // Initialise .bss memory. `__sbss` and `__ebss` come from the linker script. + #[cfg(not(feature = "zero-init-ram"))] "ldr r0, =__sbss ldr r1, =__ebss movs r2, #0 |