chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / alpha / submitted-syscall.diff
1 2009-05-31  Mike Hommey   <mh+reportbug@glandium.org>
2
3         * sysdeps/unix/sysv/linux/alpha/syscall.S: add support for 6th
4         argument.
5
6 --- a/ports/sysdeps/unix/sysv/linux/alpha/syscall.S
7 +++ b/ports/sysdeps/unix/sysv/linux/alpha/syscall.S
8 @@ -31,13 +31,13 @@
9   *
10   * Usage:
11   *
12 - * long        syscall(syscall_number, arg1, arg2, arg3, arg4, arg5)
13 + * long        syscall(syscall_number, arg1, arg2, arg3, arg4, arg5, arg6)
14   *
15   * syscall_number = the index of the system call we're invoking
16 - * arg1-arg5 = up to 5 integer arguments to the system call
17 + * arg1-arg6 = up to 6 integer arguments to the system call
18   *
19   * We need to do some arg shifting: the kernel expects the
20 - * syscall number in v0 and the first five args in a0-a4.
21 + * syscall number in v0 and the first six args in a0-a5.
22   *
23   */
24  
25 @@ -60,6 +60,7 @@
26         mov     a3, a2
27         mov     a4, a3
28         mov     a5, a4
29 +       ldq     a5,0(sp)        /* arg6 -> a5 */
30  
31         call_pal PAL_callsys    /* Invoke system call */
32         bne     a3, $error