File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto)
658
658
ldp x26,x27, [x0, #0x0D0]
659
659
ldp x28,x29, [x0, #0x0E0]
660
660
ldr x30, [x0, #0x100] // restore pc into lr
661
-
661
+ #if defined(__ARM_FP) && __ARM_FP != 0
662
662
ldp d0, d1, [x0, #0x110]
663
663
ldp d2, d3, [x0, #0x120]
664
664
ldp d4, d5, [x0, #0x130]
@@ -676,7 +676,7 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto)
676
676
ldp d28,d29, [x0, #0x1F0]
677
677
ldr d30, [x0, #0x200]
678
678
ldr d31, [x0, #0x208]
679
-
679
+ #endif
680
680
// Finally, restore sp. This must be done after the last read from the
681
681
// context struct, because it is allocated on the stack, and an exception
682
682
// could clobber the de-allocated portion of the stack after sp has been
Original file line number Diff line number Diff line change @@ -746,6 +746,7 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
746
746
str x1, [x0, #0x0F8]
747
747
str x30, [x0, #0x100] // store return address as pc
748
748
// skip cpsr
749
+ #if defined(__ARM_FP) && __ARM_FP != 0
749
750
stp d0, d1, [x0, #0x110]
750
751
stp d2, d3, [x0, #0x120]
751
752
stp d4, d5, [x0, #0x130]
@@ -763,6 +764,7 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
763
764
stp d28,d29, [x0, #0x1F0]
764
765
str d30, [x0, #0x200]
765
766
str d31, [x0, #0x208]
767
+ #endif
766
768
mov x0, #0 // return UNW_ESUCCESS
767
769
ret
768
770
You can’t perform that action at this time.
0 commit comments