X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/75339638bc5f21f13d3475374ecbd91065a427c3..0b6fbe304e14f104a9e8cf43a09bf60709d44207:/lunaix-os/usr/uwrap.S diff --git a/lunaix-os/usr/uwrap.S b/lunaix-os/usr/uwrap.S index 5708463..c9e2bbc 100644 --- a/lunaix-os/usr/uwrap.S +++ b/lunaix-os/usr/uwrap.S @@ -9,13 +9,15 @@ .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