Skip to content

Commit 4bf9ef4

Browse files
Norbert Fabritiusadamgreig
Norbert Fabritius
authored andcommitted
zero-init-ram: Expand comment above asm code
1 parent 26cae65 commit 4bf9ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,8 @@ cfg_global_asm! {
521521
"ldr r0, =_stack_start
522522
msr msp, r0",
523523

524-
// If enabled, initialize RAM with zeros. This is normally not necessary but might be required
525-
// on custom hardware.
524+
// If enabled, initialize RAM with zeros. This is not usually required, but might be necessary
525+
// to properly initialize checksum-based memory integrity measures on safety-critical hardware.
526526
#[cfg(feature = "zero-init-ram")]
527527
"ldr r0, =_ram_start
528528
ldr r1, =_ram_end

0 commit comments

Comments
 (0)