Usermode - Misc header changes
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / arch / armv7.S.h
index a1c973b..9132c02 100644 (file)
@@ -2,8 +2,6 @@
 // Acess2 ARMv7 - System Calls
 //
 
-#include "../../../../Kernel/include/syscalls.h"
-
 .globl _start
 .extern SoMain
 _start:
@@ -71,7 +69,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 +79,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}

UCC git Repository :: git.ucc.asn.au