summaryrefslogtreecommitdiffhomepage
path: root/dev/launch
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-10-17 02:25:08 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-10-17 02:25:08 +0200
commitfd1363ed904d3a4c4095b81c239b5e179a237ec3 (patch)
tree0cbb2232cbd0ffded97640ff9e83cbdce471420b /dev/launch
parentd48b2faedce25990b83076cfd71e713b222da25a (diff)
fix: launch: crt0: fix assembly stub as correctly pointed out by 0xf00s.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/launch')
-rw-r--r--dev/launch/src/CRuntimeZero.S9
1 files changed, 3 insertions, 6 deletions
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