From f0acad6f3206079d804b2f59aace0dc32dbeb6dc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 19 Feb 2026 08:14:48 +0100 Subject: kernel: lots of tweaks and improvements, WIP: ASN, FileMgr support for OpenHeFS. Signed-off-by: Amlal El Mahrouss --- src/launch/launch.json | 4 ++-- src/launch/src/Main.cc | 28 ---------------------------- src/launch/src/RuntimeMain.cpp | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 src/launch/src/Main.cc create mode 100644 src/launch/src/RuntimeMain.cpp (limited to 'src/launch') diff --git a/src/launch/launch.json b/src/launch/launch.json index dbc111b2..1230b34d 100644 --- a/src/launch/launch.json +++ b/src/launch/launch.json @@ -2,8 +2,8 @@ "compiler_path": "x86_64-w64-mingw32-g++", "compiler_std": "c++20", "headers_path": ["../", "./", "../../public/frameworks"], - "sources_path": ["src/*.cc", "src/*.S"], - "output_name": "ne_launch", + "sources_path": ["src/*.cpp", "src/*.S"], + "output_name": "ne_launch.exe", "compiler_flags": [ "-ffreestanding", "-shared", diff --git a/src/launch/src/Main.cc b/src/launch/src/Main.cc deleted file mode 100644 index 40a6a4df..00000000 --- a/src/launch/src/Main.cc +++ /dev/null @@ -1,28 +0,0 @@ -// 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 - -#include -#include -#include - -/// @note This called by _NeMain from its own runtime. -IMPORT_C SInt32 nelaunch_startup_fn(Void) { - /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch) - UInt32* ret = - static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_register_service"))); - - if (ret) { - switch (*ret) { - case kErrorSuccess: { - ret = - static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_listen_as_super"))); - return *ret; - } - default: - break; - } - } - - return kErrorExecutable; -} diff --git a/src/launch/src/RuntimeMain.cpp b/src/launch/src/RuntimeMain.cpp new file mode 100644 index 00000000..40a6a4df --- /dev/null +++ b/src/launch/src/RuntimeMain.cpp @@ -0,0 +1,28 @@ +// 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 + +#include +#include +#include + +/// @note This called by _NeMain from its own runtime. +IMPORT_C SInt32 nelaunch_startup_fn(Void) { + /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch) + UInt32* ret = + static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_register_service"))); + + if (ret) { + switch (*ret) { + case kErrorSuccess: { + ret = + static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_listen_as_super"))); + return *ret; + } + default: + break; + } + } + + return kErrorExecutable; +} -- cgit v1.2.3