BUGFIX arm aeabi_sdivmod crashes in interupt mode

Change-Id: I6e89334b0f5df1d513a3f466e1db9cdc198944fe
This commit is contained in:
William Wilgus 2022-03-11 03:05:15 -05:00
parent 57cffae369
commit 68d0175172

View file

@ -676,8 +676,8 @@ __udivsi3:
.size __udivsi3, . - __udivsi3
__divsi3:
str lr, [sp, #-4]
ARMV5_SDIV32_BODY r0, r1, r0, "", r2, lr, ip, r3, __div0_wrap_s, "ldr pc, [sp, #-4]"
push {lr}
ARMV5_SDIV32_BODY r0, r1, r0, "", r2, lr, ip, r3, __div0_wrap_s, "pop {pc}"
.size __divsi3, . - __divsi3
#else
@ -686,8 +686,8 @@ __aeabi_uidivmod:
.size __aeabi_uidivmod, . - __aeabi_uidivmod
__aeabi_idivmod:
str lr, [sp, #-4]
ARMV5_SDIV32_BODY r0, r1, r0, r1, r2, lr, ip, r3, __div0_wrap_s, "ldr pc, [sp, #-4]"
push {lr}
ARMV5_SDIV32_BODY r0, r1, r0, r1, r2, lr, ip, r3, __div0_wrap_s, "pop {pc}"
.size __aeabi_idivmod, . - __aeabi_idivmod
#endif