Skip to content

Commit 10bff49

Browse files
author
Norbert Fabritius
committed
zero-init-ram: Expand comment above asm code
1 parent 3dec0b2 commit 10bff49

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
@@ -522,8 +522,8 @@ cfg_global_asm! {
522522
"ldr r0, =_stack_start
523523
msr msp, r0",
524524

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

0 commit comments

Comments
 (0)