]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Rename MIPS sys_pipe syscall entry point to something MIPS-specific.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 20 Jul 2008 12:16:46 +0000 (13:16 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 20 Jul 2008 13:38:21 +0000 (14:38 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S
arch/mips/kernel/syscall.c

index c058c0b61a2aced91232498bcf5c8efba8b606d4..fc4fd4d705e2b585179d2a4d62b88b76ba2c04a3 100644 (file)
@@ -354,7 +354,7 @@ einval:     li      v0, -EINVAL
        sys     sys_mkdir               2
        sys     sys_rmdir               1       /* 4040 */
        sys     sys_dup                 1
-       sys     sys_pipe                0
+       sys     sysm_pipe               0
        sys     sys_times               1
        sys     sys_ni_syscall          0
        sys     sys_brk                 1       /* 4045 */
index dc597b600c68f002393008a622f0dc882a86bdba..2b73fd1e45285094a7e8dc79b94390096acb91fc 100644 (file)
@@ -219,7 +219,7 @@ sys_call_table:
        PTR     sys_readv
        PTR     sys_writev
        PTR     sys_access                      /* 5020 */
-       PTR     sys_pipe
+       PTR     sysm_pipe
        PTR     sys_select
        PTR     sys_sched_yield
        PTR     sys_mremap
index 12940eca7893253d097b7effc1d16121b9881328..2654e75d2fef20418ec9a2f638cabd316111af82 100644 (file)
@@ -141,7 +141,7 @@ EXPORT(sysn32_call_table)
        PTR     compat_sys_readv
        PTR     compat_sys_writev
        PTR     sys_access                      /* 6020 */
-       PTR     sys_pipe
+       PTR     sysm_pipe
        PTR     compat_sys_select
        PTR     sys_sched_yield
        PTR     sys_mremap
index 9a275efb4f04490f6192b725fbea0e665f50ee0b..76167bea5a70a504730e17c6f0952bbcb9faf554 100644 (file)
@@ -247,7 +247,7 @@ sys_call_table:
        PTR     sys_mkdir
        PTR     sys_rmdir                       /* 4040 */
        PTR     sys_dup
-       PTR     sys_pipe
+       PTR     sysm_pipe
        PTR     compat_sys_times
        PTR     sys_ni_syscall
        PTR     sys_brk                         /* 4045 */
index af1bdc897488acf4d71f65bc69579f58b03183ce..3523c8d12eda8707af06e8054320374626635852 100644 (file)
 #include <asm/sysmips.h>
 #include <asm/uaccess.h>
 
-asmlinkage int sys_pipe(nabi_no_regargs volatile struct pt_regs regs)
+/*
+ * For historic reasons the pipe(2) syscall on MIPS has an unusual calling
+ * convention.  It returns results in registers $v0 / $v1 which means there
+ * is no need for it to do verify the validity of a userspace pointer
+ * argument.  Historically that used to be expensive in Linux.  These days
+ * the performance advantage is negligible.
+ */
+asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs regs)
 {
        int fd[2];
        int error, res;