Skip to content

Commit 90b44f4

Browse files
committed
Fix inline assembly.
1 parent 0b51fee commit 90b44f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: cortex-m-rt/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ cfg_global_asm! {
548548
ldr r1, =__edata
549549
ldr r2, =__sidata
550550
2:
551-
cmp r0, r0
551+
cmp r1, r0
552552
beq 3f
553553
ldm r2!, {{r3}}
554554
stm r0!, {{r3}}
@@ -569,7 +569,8 @@ cfg_global_asm! {
569569

570570
// Push `lr` to the stack for debuggers, to prevent them unwinding past Reset.
571571
// See https://sourceware.org/binutils/docs/as/CFI-directives.html.
572-
".cfi_def_cfa sp, 0
572+
"4:
573+
.cfi_def_cfa sp, 0
573574
push {{lr}}
574575
.cfi_offset lr, 0",
575576

0 commit comments

Comments
 (0)