git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Menuconfig Implementation and auto-qemu refactoring (#44)
[lunaix-os.git]
/
lunaix-os
/
arch
/
x86
/
syscall32.S
diff --git
a/lunaix-os/arch/x86/syscall32.S
b/lunaix-os/arch/x86/syscall32.S
index 4f0ad5b21ab72de6f7e2c040ee2dccdb6718196d..650dc1701250597559cab77126c55c50380756f7 100644
(file)
--- a/
lunaix-os/arch/x86/syscall32.S
+++ b/
lunaix-os/arch/x86/syscall32.S
@@
-107,10
+107,11
@@
pushl 12(%ebx) /* edx - #3 arg */
pushl 8(%ebx) /* ecx - #2 arg */
pushl 4(%ebx) /* ebx - #1 arg */
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 $2
0
, %esp /* remove the parameters from stack */
+ addl $2
4
, %esp /* remove the parameters from stack */
popl %ebx
movl %eax, (%ebx) /* save the return value */
popl %ebx
movl %eax, (%ebx) /* save the return value */