Skip to content

Commit 42bc1a2

Browse files
Dirbaiojamesmunns
andauthored
Update cortex-m-rt/src/lib.rs
Co-authored-by: James Munns <james@onevariable.com>
1 parent 5da2003 commit 42bc1a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ cfg_global_asm! {
569569

570570
// Push `lr` to the stack for debuggers, to prevent them unwinding past Reset.
571571
// Push a dummy `r4` (which is always 0xFFFF_FFFF) to ensure the stack stays 8-byte aligned.
572-
// See https://sourceware.org/binutils/docs/as/CFI-directives.html.
572+
// For CFI information, see https://sourceware.org/binutils/docs/as/CFI-directives.html.
573+
// For 8 byte alignment, see https://github.com/ARM-software/abi-aa/blob/edd7460d87493fff124b8b5713acf71ffc06ee91/aapcs32/aapcs32.rst#6212stack-constraints-at-a-public-interface.
573574
".cfi_def_cfa sp, 0
574575
push {{r4, lr}}
575576
.cfi_offset lr, 4",

0 commit comments

Comments
 (0)