From fd1363ed904d3a4c4095b81c239b5e179a237ec3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 17 Oct 2025 02:25:08 +0200 Subject: fix: launch: crt0: fix assembly stub as correctly pointed out by 0xf00s. Signed-off-by: Amlal El Mahrouss --- dev/launch/src/CRuntimeZero.S | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dev/launch/src') diff --git a/dev/launch/src/CRuntimeZero.S b/dev/launch/src/CRuntimeZero.S index 8892c661..73fa5352 100644 --- a/dev/launch/src/CRuntimeZero.S +++ b/dev/launch/src/CRuntimeZero.S @@ -13,14 +13,11 @@ _NeMain: push %rbp movq %rsp, %rbp + callq nelaunch_startup_fn - xor %rax, %rax - popq %rbp - push %rbp - movq %rsp, %rbp movq %rcx, 0 + callq ThrExitMainThread + popq %rbp - - retq -- cgit v1.2.3