diff options
author | Andreas Jaeger <aj@suse.de> | 2003-12-12 11:02:04 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2003-12-12 11:02:04 +0000 |
commit | 1f15e19f6a7e635d5a1c013512ba0e80daa8f38d (patch) | |
tree | 3d6c6c68fbc3b9e2dab7c8f508668b841312d2c2 /sysdeps | |
parent | 8e4f5035e37bed96fbfa530e3fa8ae8d9bc631cf (diff) | |
download | glibc-1f15e19f6a7e635d5a1c013512ba0e80daa8f38d.tar glibc-1f15e19f6a7e635d5a1c013512ba0e80daa8f38d.tar.gz glibc-1f15e19f6a7e635d5a1c013512ba0e80daa8f38d.tar.bz2 glibc-1f15e19f6a7e635d5a1c013512ba0e80daa8f38d.zip |
Pass also 6th argument to syscall.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/syscall.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/syscall.S b/sysdeps/unix/sysv/linux/x86_64/syscall.S index 262a917d13..cf49dbcd19 100644 --- a/sysdeps/unix/sysv/linux/x86_64/syscall.S +++ b/sysdeps/unix/sysv/linux/x86_64/syscall.S @@ -21,7 +21,7 @@ /* Please consult the file sysdeps/unix/sysv/linux/x86-64/sysdep.h for 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 rax. */ @@ -34,6 +34,7 @@ ENTRY (syscall) movq %rcx, %rdx movq %r8, %r10 movq %r9, %r8 + movq 8(%rsp),%r9 /* arg6 is on the stack. */ syscall /* Do the system call. */ cmpq $-4095, %rax /* Check %rax for error. */ jae SYSCALL_ERROR_LABEL /* Jump to error handler if error. */ |