diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-16 11:58:48 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-16 11:58:48 +0200 |
| commit | d48b2faedce25990b83076cfd71e713b222da25a (patch) | |
| tree | bf3dacfe5979588b371c15e06282c40eb9ba2951 /dev/launch/src/CRuntimeZero.S | |
| parent | faec0dd3a9eda081052753f260133d10b2cdbfe7 (diff) | |
feat: `ne_launch`: cli application - and new framework.
feat: `ddk`: feat: api! breaking api changes - for v0.0.7 NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/launch/src/CRuntimeZero.S')
| -rw-r--r-- | dev/launch/src/CRuntimeZero.S | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev/launch/src/CRuntimeZero.S b/dev/launch/src/CRuntimeZero.S new file mode 100644 index 00000000..8892c661 --- /dev/null +++ b/dev/launch/src/CRuntimeZero.S @@ -0,0 +1,26 @@ +/* ------------------------------------------- + + Copyright (C) 2025, Amlal El Mahrouss, all rights reserved. + + ------------------------------------------- */ + +.text + +.extern nelaunch_startup_fn +.extern ThrExitMainThread +.globl _NeMain + +_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 |
