git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
feat: closedir(2)
[lunaix-os.git]
/
lunaix-os
/
usr
/
uwrap.S
1
#define __ASM__
2
#include <lunaix/syscall.h>
3
4
.section .text
5
.global _u_start
6
_u_start:
7
call usr_pre_init
8
jnz 1f
9
10
popl %eax
11
12
pushl (%eax) // argc
13
pushl 4(%eax) // argv
14
15
xorl %eax, %eax
16
call main
17
18
1:
19
movl %eax, %ebx
20
movl $__SYSCALL__exit, %eax
21
int $LUNAIX_SYS_CALL
22
23
ud2 // should not reach