diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-24 01:10:32 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-24 01:10:32 +0100 |
| commit | 0d36b950f6a560a0312f2dcd326d3bb5362af370 (patch) | |
| tree | 6d417483e22589e5ca07bf98a0bd8099ae5882e8 /userspace/sys/crt0.S | |
| parent | ec0ba7bc40854eab6a1cdb41364f41f9c11407e1 (diff) | |
playing with enviroment variables
Diffstat (limited to 'userspace/sys/crt0.S')
| -rw-r--r-- | userspace/sys/crt0.S | 9 |
1 files changed, 5 insertions, 4 deletions
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: |
