aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorMike Hommey <mh+reportbug@glandium.org>2012-02-15 16:27:55 -0800
committerRichard Henderson <rth@twiddle.net>2012-02-15 16:27:55 -0800
commitf3ce45f370b011485280a60ec9823f5be85b4735 (patch)
tree930e274e6f8793b41b37c51e28b894cd03ea62ce /sysdeps/unix
parent596720af7a36d043f4f5f887d9ac7c72b411d3f1 (diff)
downloadglibc-f3ce45f370b011485280a60ec9823f5be85b4735.tar
glibc-f3ce45f370b011485280a60ec9823f5be85b4735.tar.gz
glibc-f3ce45f370b011485280a60ec9823f5be85b4735.tar.bz2
glibc-f3ce45f370b011485280a60ec9823f5be85b4735.zip
alpha: Support 6th argument to syscall
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/syscall.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/syscall.S b/sysdeps/unix/sysv/linux/alpha/syscall.S
index 0c4081363a..02d5d65194 100644
--- a/sysdeps/unix/sysv/linux/alpha/syscall.S
+++ b/sysdeps/unix/sysv/linux/alpha/syscall.S
@@ -31,13 +31,13 @@
*
* Usage:
*
- * long syscall(syscall_number, arg1, arg2, arg3, arg4, arg5)
+ * long syscall(syscall_number, arg1, arg2, arg3, arg4, arg5, arg6)
*
* syscall_number = the index of the system call we're invoking
- * arg1-arg5 = up to 5 integer arguments to the system call
+ * arg1-arg6 = up to 6 integer arguments to the system call
*
* We need to do some arg shifting: the kernel expects the
- * syscall number in v0 and the first five args in a0-a4.
+ * syscall number in v0 and the first six args in a0-a5.
*
*/
@@ -60,6 +60,7 @@ LEAF(__syscall, 0)
mov a3, a2
mov a4, a3
mov a5, a4
+ ldq a5,0(sp) /* arg6 -> a5 */
call_pal PAL_callsys /* Invoke system call */
bne a3, $error