summaryrefslogtreecommitdiffhomepage
path: root/src/libSystem
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-11 15:17:49 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-11 15:20:14 +0100
commit878919d80864301328f3e9c471fe2dce2a8ea61d (patch)
treef41e78fadd920a5bbb6021ed8484e2902f92912e /src/libSystem
parentb294efa65072053b642dc16511c9ab5405cb8303 (diff)
chore: kernel/boot: Enforce subsystem 17 by default.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libSystem')
-rw-r--r--src/libSystem/src/SystemCalls.cc15
1 files changed, 7 insertions, 8 deletions
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<SInt32*>(libsys_syscall_arg_2(SYSCALL_HASH("PrintRelease"), static_cast<VoidPtr>(buf)));
+ SInt32* ret = static_cast<SInt32*>(
+ libsys_syscall_arg_2(SYSCALL_HASH("PrintRelease"), static_cast<VoidPtr>(buf)));
if (!ret) return -kErrorInvalidData;
return static_cast<SInt32>(*ret);
@@ -159,15 +160,13 @@ IMPORT_C IORef PrintCreate(Void) {
return static_cast<IORef>(libsys_syscall_arg_1(SYSCALL_HASH("PrintCreate")));
}
-
IMPORT_C VoidPtr MmCreateHeap(UInt64 initial_size, UInt32 max_size) {
return static_cast<VoidPtr>(libsys_syscall_arg_3(SYSCALL_HASH("MmCreateHeap"),
- reinterpret_cast<VoidPtr>(&initial_size),
- reinterpret_cast<VoidPtr>(&max_size)));
+ reinterpret_cast<VoidPtr>(&initial_size),
+ reinterpret_cast<VoidPtr>(&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<VoidPtr>(heap));
return *static_cast<SInt32*>(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<IORef>(libsys_syscall_arg_2(SYSCALL_HASH("PrintGet"),
- Verify::sys_safe_cast<Char, Void>(path)));
+ return static_cast<IORef>(
+ libsys_syscall_arg_2(SYSCALL_HASH("PrintGet"), Verify::sys_safe_cast<Char, Void>(path)));
}
IMPORT_C ErrRef ErrGetLastError(Void) {