diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-03-11 03:05:15 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-03-11 03:05:15 -0500 |
commit | 68d0175172d651efaa6e751985df0d5b57a08d73 (patch) | |
tree | 832e026fb119790a922b20c1e72f918c1399dfcd /lib/arm_support | |
parent | 57cffae369633d2a3f3ff3095b0f271d988e3c87 (diff) | |
download | rockbox-68d0175172d651efaa6e751985df0d5b57a08d73.tar.gz rockbox-68d0175172d651efaa6e751985df0d5b57a08d73.zip |
BUGFIX arm aeabi_sdivmod crashes in interupt mode
Change-Id: I6e89334b0f5df1d513a3f466e1db9cdc198944fe
Diffstat (limited to 'lib/arm_support')
-rw-r--r-- | lib/arm_support/support-arm.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/arm_support/support-arm.S b/lib/arm_support/support-arm.S index df49dc49e8..442a629fca 100644 --- a/lib/arm_support/support-arm.S +++ b/lib/arm_support/support-arm.S | |||
@@ -676,8 +676,8 @@ __udivsi3: | |||
676 | .size __udivsi3, . - __udivsi3 | 676 | .size __udivsi3, . - __udivsi3 |
677 | 677 | ||
678 | __divsi3: | 678 | __divsi3: |
679 | str lr, [sp, #-4] | 679 | push {lr} |
680 | ARMV5_SDIV32_BODY r0, r1, r0, "", r2, lr, ip, r3, __div0_wrap_s, "ldr pc, [sp, #-4]" | 680 | ARMV5_SDIV32_BODY r0, r1, r0, "", r2, lr, ip, r3, __div0_wrap_s, "pop {pc}" |
681 | .size __divsi3, . - __divsi3 | 681 | .size __divsi3, . - __divsi3 |
682 | 682 | ||
683 | #else | 683 | #else |
@@ -686,8 +686,8 @@ __aeabi_uidivmod: | |||
686 | .size __aeabi_uidivmod, . - __aeabi_uidivmod | 686 | .size __aeabi_uidivmod, . - __aeabi_uidivmod |
687 | 687 | ||
688 | __aeabi_idivmod: | 688 | __aeabi_idivmod: |
689 | str lr, [sp, #-4] | 689 | push {lr} |
690 | ARMV5_SDIV32_BODY r0, r1, r0, r1, r2, lr, ip, r3, __div0_wrap_s, "ldr pc, [sp, #-4]" | 690 | ARMV5_SDIV32_BODY r0, r1, r0, r1, r2, lr, ip, r3, __div0_wrap_s, "pop {pc}" |
691 | .size __aeabi_idivmod, . - __aeabi_idivmod | 691 | .size __aeabi_idivmod, . - __aeabi_idivmod |
692 | #endif | 692 | #endif |
693 | 693 | ||