Skip to content

Commit

Permalink
Update cortex-m-rt/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: James Munns <james@onevariable.com>
  • Loading branch information
Dirbaio and jamesmunns committed Feb 13, 2023
1 parent 5da2003 commit 42bc1a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cortex-m-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ cfg_global_asm! {

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

0 comments on commit 42bc1a2

Please sign in to comment.