am 2b10d912: am fcee105b: Merge "x86 libc: fix the wrong return value of syscall"
* commit '2b10d912cc5a566818ff68f9af192033d8f8b2a9': x86 libc: fix the wrong return value of syscall
This commit is contained in:
commit
2b434862fd
@ -20,18 +20,15 @@
|
|||||||
.align 4
|
.align 4
|
||||||
|
|
||||||
syscall:
|
syscall:
|
||||||
push %eax
|
|
||||||
push %ebx
|
push %ebx
|
||||||
push %ecx
|
|
||||||
push %edx
|
|
||||||
push %esi
|
push %esi
|
||||||
push %edi
|
push %edi
|
||||||
mov 28(%esp),%eax
|
mov 16(%esp),%eax
|
||||||
mov 32(%esp),%ebx
|
mov 20(%esp),%ebx
|
||||||
mov 36(%esp),%ecx
|
mov 24(%esp),%ecx
|
||||||
mov 40(%esp),%edx
|
mov 28(%esp),%edx
|
||||||
mov 44(%esp),%esi
|
mov 32(%esp),%esi
|
||||||
mov 48(%esp),%edi
|
mov 36(%esp),%edi
|
||||||
|
|
||||||
int $0x80
|
int $0x80
|
||||||
|
|
||||||
@ -45,8 +42,5 @@ syscall:
|
|||||||
1:
|
1:
|
||||||
pop %edi
|
pop %edi
|
||||||
pop %esi
|
pop %esi
|
||||||
pop %edx
|
|
||||||
pop %ecx
|
|
||||||
pop %ebx
|
pop %ebx
|
||||||
pop %eax
|
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user