summaryrefslogtreecommitdiffhomepage
path: root/dev/launch
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
commit83d870e58457a1d335a1d9b9966a6a1887cc297b (patch)
tree72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/launch
parentab37adbacf0f33845804c788b39680cd754752a8 (diff)
feat! breaking changes on kernel sources.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/launch')
-rw-r--r--dev/launch/.keep0
-rw-r--r--dev/launch/LaunchKit/Foundation.h21
-rw-r--r--dev/launch/launch.json20
-rw-r--r--dev/launch/obj/.keep0
-rw-r--r--dev/launch/src/.keep0
-rw-r--r--dev/launch/src/AppMain.cc28
-rw-r--r--dev/launch/src/CRuntimeZero.S23
7 files changed, 0 insertions, 92 deletions
diff --git a/dev/launch/.keep b/dev/launch/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/dev/launch/.keep
+++ /dev/null
diff --git a/dev/launch/LaunchKit/Foundation.h b/dev/launch/LaunchKit/Foundation.h
deleted file mode 100644
index d7eb901f..00000000
--- a/dev/launch/LaunchKit/Foundation.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* ========================================
-
- Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
- ======================================== */
-
-#pragma once
-
-#include <CoreFoundation.fwrk/headers/Ref.h>
-#include <libSystem/SystemKit/System.h>
-
-/// @author Amlal El Mahrouss
-/// @brief NeKernel Launch Kit - launch programs from it.
-
-#define NELAUNCH_INFO(MSG) PrintOut(nullptr, "INFO: [LAUNCH] %s\n", MSG)
-#define NELAUNCH_WARN(MSG) PrintOut(nullptr, "WARN: [LAUNCH] %s\n", MSG)
-
-namespace Launch {
-using AnyRef = CF::CFRef<VoidPtr>;
-using StatusRef = CF::CFRef<SInt32>;
-} // namespace Launch
diff --git a/dev/launch/launch.json b/dev/launch/launch.json
deleted file mode 100644
index dbc111b2..00000000
--- a/dev/launch/launch.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "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",
- "compiler_flags": [
- "-ffreestanding",
- "-shared",
- "-fPIC",
- "-fno-rtti",
- "-fno-exceptions",
- "-Wl,--subsystem=17"
- ],
- "cpp_macros": [
- "kNeLaunchVersion=0x0100",
- "kNeLaunchVersionHighest=0x0100",
- "kNeLaunchVersionLowest=0x0100"
- ]
-}
diff --git a/dev/launch/obj/.keep b/dev/launch/obj/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/dev/launch/obj/.keep
+++ /dev/null
diff --git a/dev/launch/src/.keep b/dev/launch/src/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/dev/launch/src/.keep
+++ /dev/null
diff --git a/dev/launch/src/AppMain.cc b/dev/launch/src/AppMain.cc
deleted file mode 100644
index 10e9ff2b..00000000
--- a/dev/launch/src/AppMain.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ========================================
-
- Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
- ======================================== */
-
-#include <LaunchKit/Foundation.h>
-#include <libSystem/SystemKit/Err.h>
-#include <libSystem/SystemKit/Syscall.h>
-
-/// @note This called by _NeMain from its own runtime.
-extern "C" SInt32 nelaunch_startup_fn(Void) {
- /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch)
- UInt32* ret = (UInt32*) libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service"));
-
- if (ret) {
- switch (*ret) {
- case kErrorSuccess: {
- libsys_syscall_arg_1(libsys_hash_64("__launch_listen_as_root"));
- return *ret;
- }
- default:
- break;
- }
- }
-
- return kErrorExecutable;
-}
diff --git a/dev/launch/src/CRuntimeZero.S b/dev/launch/src/CRuntimeZero.S
deleted file mode 100644
index 4f983b46..00000000
--- a/dev/launch/src/CRuntimeZero.S
+++ /dev/null
@@ -1,23 +0,0 @@
-/* ========================================
-
- Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
- ======================================== */
-
-.text
-
-.extern nelaunch_startup_fn
-.extern ThrExitMainThread
-.globl _NeMain
-
-_NeMain:
- push %rbp
- movq %rsp, %rbp
-
- callq nelaunch_startup_fn
-
- movq %rcx, 0
-
- callq ThrExitMainThread
-
- popq %rbp