feat: dynamic boot medium probing and mounting
[lunaix-os.git] / lunaix-os / usr / uwrap.S
index 5708463653a63d0564a37ba16f3d3899dabc68b9..c9e2bbc20aa9a43ec6c512b3c9d27e59563ca11c 100644 (file)
@@ -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