From fca7e2533bfd9ed5fd678aeec2600d1c13a2c5c8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 15 Mar 2026 13:04:33 +0100 Subject: [CHORE] Add PThread core features and NeLaunch ProgramData feature. Signed-off-by: Amlal El Mahrouss --- src/launch/src/CRuntimeZero.S | 18 ++++++++++++++++-- src/launch/src/RuntimeMain.cpp | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'src/launch') diff --git a/src/launch/src/CRuntimeZero.S b/src/launch/src/CRuntimeZero.S index 7dd283c9..2a7b195d 100644 --- a/src/launch/src/CRuntimeZero.S +++ b/src/launch/src/CRuntimeZero.S @@ -20,7 +20,21 @@ _NeMain: callq launch_startup_fn movq %rcx, 0 - callq ThrExitMainThread - popq %rbp + +.data +.global _ProgramData +_ProgramData: + //;; ident + .word 0xffeecc + //;; version + .word 0x0110 + //;; kind: 0x0 = LaunchSystem + .word 0x0 + //;; flags + .word 0x0 + //;; Launcher name + .asciz "NeKernel Launcher" + + diff --git a/src/launch/src/RuntimeMain.cpp b/src/launch/src/RuntimeMain.cpp index 3216dad0..833a2f55 100644 --- a/src/launch/src/RuntimeMain.cpp +++ b/src/launch/src/RuntimeMain.cpp @@ -12,13 +12,13 @@ IMPORT_C SInt32 launch_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"))); + static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_register_service"))); // Register service based on program data. if (ret) { switch (*ret) { case kErrorSuccess: { ret = - static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_listen_as_super"))); + static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_attach_service"))); // Attach this program as the service process. return *ret; } default: -- cgit v1.2.3 From 59f58be5d8edde230f5528ef2152d73294945445 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 15 Mar 2026 13:05:10 +0100 Subject: [CHORE] Add PThread core features and NeLaunch ProgramData feature. Signed-off-by: Amlal El Mahrouss --- src/launch/src/CRuntimeZero.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/launch') diff --git a/src/launch/src/CRuntimeZero.S b/src/launch/src/CRuntimeZero.S index 2a7b195d..1e5e2cbb 100644 --- a/src/launch/src/CRuntimeZero.S +++ b/src/launch/src/CRuntimeZero.S @@ -37,4 +37,4 @@ _ProgramData: //;; Launcher name .asciz "NeKernel Launcher" - + -- cgit v1.2.3 From ea01754db96b7dfeb866d83a73030d6983e7434e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 15 Mar 2026 13:06:30 +0100 Subject: [FEAT] Add .launch_manifest Signed-off-by: Amlal El Mahrouss --- src/launch/.launch_manifest | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/launch/.launch_manifest (limited to 'src/launch') diff --git a/src/launch/.launch_manifest b/src/launch/.launch_manifest new file mode 100644 index 00000000..201b1f61 --- /dev/null +++ b/src/launch/.launch_manifest @@ -0,0 +1,4 @@ +[Launch] +RunAsRoot=YES +# NOTE: This has to be generated and passed here to enable all-trustee permissions. +RootKey= -- cgit v1.2.3