From 0d36b950f6a560a0312f2dcd326d3bb5362af370 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 24 Nov 2014 01:10:32 +0100 Subject: playing with enviroment variables --- userspace/sys/crt0.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'userspace/sys/crt0.S') diff --git a/userspace/sys/crt0.S b/userspace/sys/crt0.S index 33e5d32..025c21b 100644 --- a/userspace/sys/crt0.S +++ b/userspace/sys/crt0.S @@ -1,14 +1,15 @@ .global _start -.extern main -.extern exit - _start: +pop %eax +mov %eax, environ + call main +push environ push %eax -call _exit +call _exit2 # this should never be reached anyway! .wait: -- cgit v1.2.3