From c000f8a0d99d0f1b4a850e53930fa5efeed0f8c4 Mon Sep 17 00:00:00 2001 From: wullie Date: Fri, 27 Feb 2026 13:07:18 +0000 Subject: [PATCH] Upload files to "src" --- src/syscall.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/syscall.c b/src/syscall.c index b4254a5..eb37a31 100644 --- a/src/syscall.c +++ b/src/syscall.c @@ -4,6 +4,9 @@ #include "localheader.h" + +// look at me I am the handler now + // syscall1 long syscall1(long number, long arg1){ long result; @@ -19,6 +22,7 @@ long syscall1(long number, long arg1){ return result; } +// syscall2 long syscall2(long number, long arg1, long arg2){ long result; @@ -35,7 +39,6 @@ long syscall2(long number, long arg1, long arg2){ // syscall3 long syscall3(long number, long arg1, long arg2, long arg3){ - long result; // asm for a system call with 3 args @@ -49,8 +52,10 @@ long syscall3(long number, long arg1, long arg2, long arg3){ return result; } +// syscall4 long syscall4(long number, long arg1, long arg2, long arg3, long arg4){ long result; + __asm__ __volatile( "syscall" : "=a"(result)