feat: kernel stack tracing
[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         xorl %ebp, %ebp
14         fninit
15         call main
16         
17     1:
18         movl %eax, %ebx
19         movl $__SYSCALL__exit, %eax
20         int $33
21
22         ud2 // should not reach