From 51d4dd040a291b62c648ff6cc0d7e0058cf4056f Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 17 Aug 2018 17:51:51 +0200 Subject: starting implicit function calls cleanup --- xxx/sys/crt0.S | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 xxx/sys/crt0.S (limited to 'xxx/sys/crt0.S') diff --git a/xxx/sys/crt0.S b/xxx/sys/crt0.S new file mode 100644 index 0000000..2d6cbbd --- /dev/null +++ b/xxx/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 -- cgit v1.2.3