From 80126f769c11f0c6ad4f4b4554748f4d59a4850d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 24 Nov 2011 16:13:59 +0800 Subject: [PATCH] Usermode/ld-acess - Fixed bug in syscall5/syscall6 macros (ARMv7) --- Usermode/Libraries/ld-acess.so_src/arch/armv7.S.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Usermode/Libraries/ld-acess.so_src/arch/armv7.S.h b/Usermode/Libraries/ld-acess.so_src/arch/armv7.S.h index a1c973bd..560b809f 100644 --- a/Usermode/Libraries/ld-acess.so_src/arch/armv7.S.h +++ b/Usermode/Libraries/ld-acess.so_src/arch/armv7.S.h @@ -71,7 +71,7 @@ _errno: .long 0 @ Placed in .text, to allow use of relative addressing .globl \_name \_name: push {r4, lr} - ldr r4, [sp,#4] + ldr r4, [sp,#8] svc #\_num str r2, _errno pop {r4, pc} @@ -81,8 +81,8 @@ _errno: .long 0 @ Placed in .text, to allow use of relative addressing .globl \_name \_name: push {r4,r5,lr} - ldr r4, [sp,#8] - ldr r5, [sp,#12] + ldr r4, [sp,#12] + ldr r5, [sp,#16] svc #\_num str r2, _errno pop {r4,r5,pc} -- 2.20.1