diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/src/FS/OpenHeFS+FileMgr.cpp | 5 | ||||
| -rw-r--r-- | src/launch/LaunchKit/Foundation.h | 8 | ||||
| -rw-r--r-- | src/launch/src/CRuntimeZero.S | 6 | ||||
| -rw-r--r-- | src/launch/src/RuntimeMain.cpp | 2 |
4 files changed, 14 insertions, 7 deletions
diff --git a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp index 82eb6460..3300759f 100644 --- a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp +++ b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp @@ -138,6 +138,10 @@ NodePtr HeFileSystemMgr::CreateSwapFile(const Char* path) { kout << "OpenHeFS: CreateSwapFile called with null or empty path\r"; return nullptr; } + + kout << "OpenHEFS: ERROR: Swap Files are not supported natively by OpenHeFS.\r"; + err_local_get() = kErrorProcessFault; + return nullptr; } @@ -174,6 +178,7 @@ _Output NodePtr HeFileSystemMgr::Open(_Input const Char* path, _Input const Char kout << "OpenHeFS: Open called with null or empty path\r"; return nullptr; } + if (!r || *r == 0) { kout << "OpenHeFS: Open called with null or empty mode string\r"; return nullptr; diff --git a/src/launch/LaunchKit/Foundation.h b/src/launch/LaunchKit/Foundation.h index 1fc7ce09..acf79955 100644 --- a/src/launch/LaunchKit/Foundation.h +++ b/src/launch/LaunchKit/Foundation.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel @@ -14,9 +14,11 @@ #define NELAUNCH_INFO(MSG) PrintOut(nullptr, "INFO: [LAUNCH] %s\n", MSG) #define NELAUNCH_WARN(MSG) PrintOut(nullptr, "WARN: [LAUNCH] %s\n", MSG) -namespace LaunchKit { +namespace Launch { + using AnyRef = CF::CFRef<VoidPtr>; using StatusRef = CF::CFRef<SInt32>; -} // namespace LaunchKit + +} // namespace Launch #endif diff --git a/src/launch/src/CRuntimeZero.S b/src/launch/src/CRuntimeZero.S index bc075dea..9ace3bbf 100644 --- a/src/launch/src/CRuntimeZero.S +++ b/src/launch/src/CRuntimeZero.S @@ -1,10 +1,10 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel .text -.extern nelaunch_startup_fn +.extern launch_startup_fn .extern ThrExitMainThread .globl _NeMain @@ -15,7 +15,7 @@ _NeMain: push %rbp movq %rsp, %rbp - callq nelaunch_startup_fn + callq launch_startup_fn movq %rcx, 0 diff --git a/src/launch/src/RuntimeMain.cpp b/src/launch/src/RuntimeMain.cpp index 40a6a4df..39c5f0f4 100644 --- a/src/launch/src/RuntimeMain.cpp +++ b/src/launch/src/RuntimeMain.cpp @@ -7,7 +7,7 @@ #include <libSystem/SystemKit/Syscall.h> /// @note This called by _NeMain from its own runtime. -IMPORT_C SInt32 nelaunch_startup_fn(Void) { +IMPORT_C SInt32 launch_startup_fn(Void) { /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch) UInt32* ret = static_cast<UInt32*>(libsys_syscall_arg_1(libsys_hash_64("__launch_register_service"))); |
