From 878919d80864301328f3e9c471fe2dce2a8ea61d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 11 Jan 2026 15:17:49 +0100 Subject: chore: kernel/boot: Enforce subsystem 17 by default. Signed-off-by: Amlal El Mahrouss --- src/libSystem/src/SystemCalls.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/libSystem') diff --git a/src/libSystem/src/SystemCalls.cc b/src/libSystem/src/SystemCalls.cc index 0d5980e4..0059d55d 100644 --- a/src/libSystem/src/SystemCalls.cc +++ b/src/libSystem/src/SystemCalls.cc @@ -149,7 +149,8 @@ IMPORT_C UInt64 IoTellFile(_Input Ref desc) { } IMPORT_C SInt32 PrintRelease(_Input IORef buf) { - SInt32* ret = static_cast(libsys_syscall_arg_2(SYSCALL_HASH("PrintRelease"), static_cast(buf))); + SInt32* ret = static_cast( + libsys_syscall_arg_2(SYSCALL_HASH("PrintRelease"), static_cast(buf))); if (!ret) return -kErrorInvalidData; return static_cast(*ret); @@ -159,15 +160,13 @@ IMPORT_C IORef PrintCreate(Void) { return static_cast(libsys_syscall_arg_1(SYSCALL_HASH("PrintCreate"))); } - IMPORT_C VoidPtr MmCreateHeap(UInt64 initial_size, UInt32 max_size) { return static_cast(libsys_syscall_arg_3(SYSCALL_HASH("MmCreateHeap"), - reinterpret_cast(&initial_size), - reinterpret_cast(&max_size))); + reinterpret_cast(&initial_size), + reinterpret_cast(&max_size))); } -IMPORT_C SInt32 MmDestroyHeap(VoidPtr heap) -{ +IMPORT_C SInt32 MmDestroyHeap(VoidPtr heap) { auto ret = libsys_syscall_arg_2(SYSCALL_HASH("MmDestroyHeap"), static_cast(heap)); return *static_cast(ret); } @@ -192,8 +191,8 @@ IMPORT_C SInt32 PrintIn(_Input IORef desc, const Char* fmt, ...) { } IMPORT_C IORef PrintGet(const Char* path) { - return static_cast(libsys_syscall_arg_2(SYSCALL_HASH("PrintGet"), - Verify::sys_safe_cast(path))); + return static_cast( + libsys_syscall_arg_2(SYSCALL_HASH("PrintGet"), Verify::sys_safe_cast(path))); } IMPORT_C ErrRef ErrGetLastError(Void) { -- cgit v1.2.3