refactor: restructure the user space stuff.
[lunaix-os.git] / lunaix-os / usr / libc / arch / i386 / crt0.S
1 #define __ASM__
2 #include <lunaix/syscallid.h>
3
4 .section .data
5     .global environ
6     environ:
7         .long 0
8
9 .section .text
10     .global _start
11     _start:        
12         xorl %eax, %eax
13         call main
14         
15     1:
16         movl %eax, %ebx
17         movl $__SYSCALL__exit, %eax
18         int $33
19
20         ud2 // should not reach