Skip to content

Commit b38af9d

Browse files
Add comment
1 parent 8bf70f5 commit b38af9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cortex-m-rt/asm.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ Reset:
9494
#endif
9595

9696
4:
97+
# Preserve `lr` and emit debuginfo that lets external tools restore it.
98+
# This fixes unwinding past the `Reset` handler.
99+
# See https://sourceware.org/binutils/docs/as/CFI-directives.html for an
100+
# explanation of the directives.
97101
.cfi_def_cfa sp, 0
98102
push {lr}
99103
.cfi_offset lr, 0

0 commit comments

Comments
 (0)