summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-22 21:41:15 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-22 21:41:15 +0200
commit41703b62f9e7e83fa856fbf53101edc889502c45 (patch)
tree96079f607134642cae1b6c79b1da70135c1bf5d6 /dev/libSystem/src
parent7c63269be0c40d8b6169d3cacf487ab370206f60 (diff)
feat: use FNV in libSystem's syscall routing.
fix: Add legacy string.h functions back, for GCC. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libSystem/src')
-rw-r--r--dev/libSystem/src/SystemCalls.cc (renamed from dev/libSystem/src/SystemAPI.cc)10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/libSystem/src/SystemAPI.cc b/dev/libSystem/src/SystemCalls.cc
index d0682830..6344cdac 100644
--- a/dev/libSystem/src/SystemAPI.cc
+++ b/dev/libSystem/src/SystemCalls.cc
@@ -47,7 +47,7 @@ IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt
}
IMPORT_C Ref IoOpenFile(_Input const Char* path, _Input const Char* drv_letter) {
- return (Ref) libsys_syscall_arg_3(SYSCALL_HASH('IoOpenFile'),
+ return (Ref) libsys_syscall_arg_3(SYSCALL_HASH("IoOpenFile"),
reinterpret_cast<VoidPtr>(const_cast<Char*>(path)),
reinterpret_cast<VoidPtr>(const_cast<Char*>(drv_letter)));
}
@@ -58,14 +58,14 @@ IMPORT_C Void IoCloseFile(_Input Ref desc) {
IMPORT_C UInt64 IoSeekFile(_Input Ref desc, _Input UInt64 off) {
auto ret = (volatile UInt64*) libsys_syscall_arg_3(
- SYSCALL_HASH('IoSeekFile'), reinterpret_cast<VoidPtr>(desc), reinterpret_cast<VoidPtr>(&off));
+ SYSCALL_HASH("IoSeekFile"), reinterpret_cast<VoidPtr>(desc), reinterpret_cast<VoidPtr>(&off));
MUST_PASS((*ret) != ~0UL);
return *ret;
}
IMPORT_C UInt64 IoTellFile(_Input Ref desc) {
- auto ret = (volatile UInt64*) libsys_syscall_arg_2(SYSCALL_HASH('IoTellFile'),
+ auto ret = (volatile UInt64*) libsys_syscall_arg_2(SYSCALL_HASH("IoTellFile"),
reinterpret_cast<VoidPtr>(desc));
return *ret;
}
@@ -76,7 +76,7 @@ IMPORT_C SInt32 PrintOut(_Input IORef desc, const char* fmt, ...) {
va_start(args, fmt);
auto ret = (volatile UInt64*) libsys_syscall_arg_4(
- SYSCALL_HASH('PrintOut'), reinterpret_cast<VoidPtr>(desc),
+ SYSCALL_HASH("PrintOut"), reinterpret_cast<VoidPtr>(desc),
reinterpret_cast<VoidPtr>(const_cast<Char*>(fmt)), args);
va_end(args);
@@ -89,6 +89,6 @@ IMPORT_C Void _rtl_assert(Bool expr, const Char* origin) {
PrintOut(nullptr, "Assertion failed: %s\r", origin);
PrintOut(nullptr, "Origin: %s\r", origin);
- libsys_syscall_arg_1(SYSCALL_HASH('_rtl_debug_break'));
+ libsys_syscall_arg_1(SYSCALL_HASH("_rtl_debug_break"));
}
}