Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / arch / x86 / syscall32.S
index 4f0ad5b21ab72de6f7e2c040ee2dccdb6718196d..650dc1701250597559cab77126c55c50380756f7 100644 (file)
         pushl   12(%ebx)      /* edx - #3 arg */
         pushl   8(%ebx)       /* ecx - #2 arg */
         pushl   4(%ebx)       /* ebx - #1 arg */
+        pushl    (%eax)
         
-        call    *(%eax)
+        call    dispatch_syscall
 
-        addl    $20, %esp      /* remove the parameters from stack */
+        addl    $24, %esp      /* remove the parameters from stack */
         
         popl    %ebx
         movl    %eax, (%ebx)    /* save the return value */