refactor: Optimize the signal context overhead
[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         fninit
14         call main
15         
16     1:
17         movl %eax, %ebx
18         movl $__SYSCALL__exit, %eax
19         int $33
20
21         ud2 // should not reach