__aeabi_memset* were switching the wrong arguments (#634)

This commit is contained in:
Graham Sanderson 2021-10-26 13:47:46 -05:00 committed by GitHub
parent 68555c9751
commit 5641cd0a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,20 +59,20 @@ regular_func __aeabi_mem_init
mem_section aeabi_memset_memcpy
wrapper_func __aeabi_memset
// args are backwards
eors r0, r1
eors r1, r0
eors r0, r1
// 2nd/3rd args are reversed
eors r2, r1
eors r1, r2
eors r2, r1
ldr r3, =aeabi_mem_funcs
ldr r3, [r3, #MEMSET]
bx r3
wrapper_func __aeabi_memset4
wrapper_func __aeabi_memset8
// args are backwards
eors r0, r1
eors r1, r0
eors r0, r1
// 2nd/3rd args are reversed
eors r2, r1
eors r1, r2
eors r2, r1
ldr r3, =aeabi_mem_funcs
ldr r3, [r3, #MEMSET4]
bx r3