diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
| commit | 2c8cefb3a269d66a6a705bcb4912b0657379273c (patch) | |
| tree | 677ee15b87072e5ccd560f1be277abaf11b1ec28 /userspace/sys/crt.S | |
| parent | 8ea3e244d44190e44a092ffb004e13ad94174c68 (diff) | |
fixed crt0.o for compiler toolchain (-lfool no more!)
Diffstat (limited to 'userspace/sys/crt.S')
| -rw-r--r-- | userspace/sys/crt.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/userspace/sys/crt.S b/userspace/sys/crt.S new file mode 100644 index 0000000..d09f8ca --- /dev/null +++ b/userspace/sys/crt.S @@ -0,0 +1,20 @@ +.global _start + +_start: + +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 |
