Skip to content

Commit 6681bc7

Browse files
Dirbaiojamesmunns
andcommitted
Update cortex-m-rt/src/lib.rs
Co-authored-by: James Munns <james@onevariable.com>
1 parent 2bb8bc3 commit 6681bc7

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
@@ -574,7 +574,8 @@ cfg_global_asm! {
574574

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

0 commit comments

Comments
 (0)