diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-09-28 14:18:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 14:18:55 +0200 |
| commit | 643fd1890646442e97f61c323bb1342ccae8c46b (patch) | |
| tree | 1dccc97ea6d52012d682f664995959fe7db9ddd1 /dev/launch/src | |
| parent | dfad97487744840f26ea8046d1a011688bd9edd0 (diff) | |
| parent | 2d673e164b98db5eb08d4c41c6225fbe73ee82d7 (diff) | |
Merge pull request #66 from 0xf00sec/patch-2
feat: `T.Value` (ErrorOr.h)
Diffstat (limited to 'dev/launch/src')
| -rw-r--r-- | dev/launch/src/.keep | 0 | ||||
| -rw-r--r-- | dev/launch/src/CRT0.S | 18 | ||||
| -rw-r--r-- | dev/launch/src/LaunchSrv.cc | 17 |
3 files changed, 35 insertions, 0 deletions
diff --git a/dev/launch/src/.keep b/dev/launch/src/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/dev/launch/src/.keep diff --git a/dev/launch/src/CRT0.S b/dev/launch/src/CRT0.S new file mode 100644 index 00000000..84a293e6 --- /dev/null +++ b/dev/launch/src/CRT0.S @@ -0,0 +1,18 @@ +/* ------------------------------------------- + + Copyright (C) 2025, Amlal El Mahrouss, all rights reserved. + + ------------------------------------------- */ + + .text + +.extern nelaunch_startup_fn +.globl _NeMain + +_NeMain: + push %rbp + movq %rsp, %rbp + callq nelaunch_startup_fn + popq %rbp + + retq diff --git a/dev/launch/src/LaunchSrv.cc b/dev/launch/src/LaunchSrv.cc new file mode 100644 index 00000000..f5c9ee3c --- /dev/null +++ b/dev/launch/src/LaunchSrv.cc @@ -0,0 +1,17 @@ +/* ------------------------------------------- + + Copyright (C) 2025, Amlal El Mahrouss, all rights reserved. + + ------------------------------------------- */ + +#include <LaunchKit/LaunchKit.h> +#include <libSystem/SystemKit/Err.h> + +/// @note This called by _NeMain from its own runtime. +extern "C" SInt32 nelaunch_startup_fn(Void) { + /// @todo Start LaunchServices.fwrk services, make the launcher manageable too (via mgmt.launch) + + NELAUNCH_INFO("Starting NeKernel services..."); + + return kErrorSuccess; +} |
