#define __ASM__ #include .section .data .global environ environ: .long 0 .section .text .global _u_start _u_start: movl (%esp), %eax pushl %eax call usr_pre_init jnz 1f popl %eax pushl 4(%eax) // argv pushl (%eax) // argc xorl %eax, %eax call main 1: movl %eax, %ebx movl $__SYSCALL__exit, %eax int $LUNAIX_SYS_CALL ud2 // should not reach