From 2c8cefb3a269d66a6a705bcb4912b0657379273c Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 25 May 2015 13:04:41 +0200 Subject: fixed crt0.o for compiler toolchain (-lfool no more!) --- userspace/sys/crt.S | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 userspace/sys/crt.S (limited to 'userspace/sys/crt.S') 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 -- cgit v1.2.3