diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-20 23:28:17 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-20 23:28:17 +0100 |
| commit | a822afc278e7855dea55bcd0de2e402d5bf43508 (patch) | |
| tree | 3ce639618b5548389096e5e340a36025e0371af7 /userspace/crt0.S | |
| parent | b9af856ae4a65e09b401cdbc7858c6cd4b1b0b5f (diff) | |
fixed loading and runnnng progs (clear bss)
Diffstat (limited to 'userspace/crt0.S')
| -rw-r--r-- | userspace/crt0.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/userspace/crt0.S b/userspace/crt0.S index 9f7dab1..e3bfa3b 100644 --- a/userspace/crt0.S +++ b/userspace/crt0.S @@ -1,9 +1,23 @@ .global _start + .extern main .extern exit + _start: + +push $0 +call sbrk + +push $[_BSS_END_] +call sbrk + call main + + +push %eax call _exit + +# this should never be reached anyway! .wait: hlt jmp .wait |
