We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b51fee commit 90b44f4Copy full SHA for 90b44f4
cortex-m-rt/src/lib.rs
@@ -548,7 +548,7 @@ cfg_global_asm! {
548
ldr r1, =__edata
549
ldr r2, =__sidata
550
2:
551
- cmp r0, r0
+ cmp r1, r0
552
beq 3f
553
ldm r2!, {{r3}}
554
stm r0!, {{r3}}
@@ -569,7 +569,8 @@ cfg_global_asm! {
569
570
// Push `lr` to the stack for debuggers, to prevent them unwinding past Reset.
571
// See https://sourceware.org/binutils/docs/as/CFI-directives.html.
572
- ".cfi_def_cfa sp, 0
+ "4:
573
+ .cfi_def_cfa sp, 0
574
push {{lr}}
575
.cfi_offset lr, 0",
576
0 commit comments