summaryrefslogtreecommitdiff
path: root/userspace/sys/crt0.S
blob: 025c21b919751d2e98fe86db07bf49e5c9e75076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.global _start

_start:

pop %eax
mov %eax, environ

call main

push environ
push %eax
call _exit2

# this should never be reached anyway!
.wait:
    hlt
jmp .wait