summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem
diff options
context:
space:
mode:
Diffstat (limited to 'dev/libSystem')
-rw-r--r--dev/libSystem/SystemKit/Macros.h2
-rw-r--r--dev/libSystem/src/SystemProc.asm22
2 files changed, 17 insertions, 7 deletions
diff --git a/dev/libSystem/SystemKit/Macros.h b/dev/libSystem/SystemKit/Macros.h
index 25bc77ba..2bdeff9d 100644
--- a/dev/libSystem/SystemKit/Macros.h
+++ b/dev/libSystem/SystemKit/Macros.h
@@ -94,7 +94,7 @@ typedef nullPtr NullPtr;
#endif
#ifndef kib_cast
-#define kib_cast(X) (UInt64)((X) * 1024)
+#define kib_cast(X) (UInt64)((X) *1024)
#endif
#ifndef MIB
diff --git a/dev/libSystem/src/SystemProc.asm b/dev/libSystem/src/SystemProc.asm
index 299b59f9..991a371f 100644
--- a/dev/libSystem/src/SystemProc.asm
+++ b/dev/libSystem/src/SystemProc.asm
@@ -1,7 +1,7 @@
;; /*
;; * ========================================================
;; *
-;; * libSystem/src/SystemCalls+IO.asm
+;; * libSystem/src/SystemProc.asm
;; * Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
;; *
;; * ========================================================
@@ -22,7 +22,9 @@ libsys_syscall_arg_1:
mov r8, rcx
- int 50
+ xor rax, rax
+
+ syscall
pop rbp
@@ -34,8 +36,10 @@ libsys_syscall_arg_2:
mov r8, rcx
mov r9, rdx
-
- int 50
+
+ xor rax, rax
+
+ syscall
pop rbp
@@ -49,7 +53,9 @@ libsys_syscall_arg_3:
mov r9, rdx
mov r10, rbx
- int 50
+ xor rax, rax
+
+ syscall
pop rbp
@@ -59,12 +65,16 @@ libsys_syscall_arg_4:
push rbp
mov rbp, rsp
+ mov rax, r8
+
mov r8, rcx
mov r9, rdx
mov r10, rbx
mov r11, rax
- int 50
+ xor rax, rax
+
+ syscall
pop rbp