X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0ca0e2a565657cd3e37315fe665b45b13daaebf4..0b6fbe304e14f104a9e8cf43a09bf60709d44207:/lunaix-os/usr/uwrap.S diff --git a/lunaix-os/usr/uwrap.S b/lunaix-os/usr/uwrap.S index 1f07722..c9e2bbc 100644 --- a/lunaix-os/usr/uwrap.S +++ b/lunaix-os/usr/uwrap.S @@ -1,16 +1,23 @@ #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 (%eax) // argc pushl 4(%eax) // argv + pushl (%eax) // argc xorl %eax, %eax call main