diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 02:28:02 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 02:28:02 +0200 |
| commit | c742be9c738c91703a7be787639cad167de3a6b1 (patch) | |
| tree | db0e170dab1b7f34630489d0cb1d396c92f15c79 /userspace/sys/crt0.S | |
| parent | 559eea53ecdd1e3e45f24d15e8739419b0cd647a (diff) | |
started reviving my fool os
Diffstat (limited to 'userspace/sys/crt0.S')
| -rw-r--r-- | userspace/sys/crt0.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/userspace/sys/crt0.S b/userspace/sys/crt0.S new file mode 100644 index 0000000..2d6cbbd --- /dev/null +++ b/userspace/sys/crt0.S @@ -0,0 +1,23 @@ +.global _start + +_start: + +jmp . + +##pop %eax +##mov %eax, environ + +##pop %eax +#mov %eax, _impure_ptr + +##call main + + +##push environ +##push %eax +##call _exit2 + +# this should never be reached anyway! +.wait: + hlt +jmp .wait |
