linux-mips
[Top] [All Lists]

[PATCH] Use compat_sys_pselect6

To: linux-mips@linux-mips.org
Subject: [PATCH] Use compat_sys_pselect6
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Wed, 10 Jan 2007 12:30:50 +0000 (UTC)
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The N32 and O32 pselect6 syscalls need to use compat_sys_pselect6 to
translate arguments from 32-bit to 64-bit layout.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
---
diff -rupN linux-2.6.19.orig/arch/mips/kernel/scall64-n32.S 
linux-2.6.19/arch/mips/kernel/scall64-n32.S
--- linux-2.6.19.orig/arch/mips/kernel/scall64-n32.S    2006-11-29 
21:57:37.000000000 +0000
+++ linux-2.6.19/arch/mips/kernel/scall64-n32.S 2007-01-10 00:17:13.000000000 
+0000
@@ -384,7 +384,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_readlinkat
        PTR     sys_fchmodat
        PTR     sys_faccessat
-       PTR     sys_pselect6
+       PTR     compat_sys_pselect6
        PTR     sys_ppoll                       /* 6265 */
        PTR     sys_unshare
        PTR     sys_splice
diff -rupN linux-2.6.19.orig/arch/mips/kernel/scall64-o32.S 
linux-2.6.19/arch/mips/kernel/scall64-o32.S
--- linux-2.6.19.orig/arch/mips/kernel/scall64-o32.S    2006-11-29 
21:57:37.000000000 +0000
+++ linux-2.6.19/arch/mips/kernel/scall64-o32.S 2007-01-10 00:16:26.000000000 
+0000
@@ -506,7 +506,7 @@ sys_call_table:
        PTR     sys_readlinkat
        PTR     sys_fchmodat
        PTR     sys_faccessat                   /* 4300 */
-       PTR     sys_pselect6
+       PTR     compat_sys_pselect6
        PTR     sys_ppoll
        PTR     sys_unshare
        PTR     sys_splice

-- 
Joseph S. Myers
joseph@codesourcery.com

<Prev in Thread] Current Thread [Next in Thread>