mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
Pass also 6th argument to syscall.
This commit is contained in:
parent
8e4f5035e3
commit
1f15e19f6a
@ -21,7 +21,7 @@
|
|||||||
/* Please consult the file sysdeps/unix/sysv/linux/x86-64/sysdep.h for
|
/* Please consult the file sysdeps/unix/sysv/linux/x86-64/sysdep.h for
|
||||||
more information about the value -4095 used below. */
|
more information about the value -4095 used below. */
|
||||||
|
|
||||||
/* Usage: long syscall (syscall_number, arg1, arg2, arg3, arg4, arg5)
|
/* Usage: long syscall (syscall_number, arg1, arg2, arg3, arg4, arg5, arg6)
|
||||||
We need to do some arg shifting, the syscall_number will be in
|
We need to do some arg shifting, the syscall_number will be in
|
||||||
rax. */
|
rax. */
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ ENTRY (syscall)
|
|||||||
movq %rcx, %rdx
|
movq %rcx, %rdx
|
||||||
movq %r8, %r10
|
movq %r8, %r10
|
||||||
movq %r9, %r8
|
movq %r9, %r8
|
||||||
|
movq 8(%rsp),%r9 /* arg6 is on the stack. */
|
||||||
syscall /* Do the system call. */
|
syscall /* Do the system call. */
|
||||||
cmpq $-4095, %rax /* Check %rax for error. */
|
cmpq $-4095, %rax /* Check %rax for error. */
|
||||||
jae SYSCALL_ERROR_LABEL /* Jump to error handler if error. */
|
jae SYSCALL_ERROR_LABEL /* Jump to error handler if error. */
|
||||||
|
Loading…
Reference in New Issue
Block a user