diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 14:48:41 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:16:18 -0500 |
commit | 55bb5a1e3ad96ba61ba7ecac0e4be69d9b625aa4 (patch) | |
tree | e338d156dd57d0fd37b4368afe00e94a2d14743d /arch/sparc | |
parent | 826c8772b1921c6911b0dc8d2d0cb016245bec90 (diff) |
sparc: switch to generic compat rt_sigpending()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/sys_sparc32.c | 24 | ||||
-rw-r--r-- | arch/sparc/kernel/systbls_64.S | 2 |
3 files changed, 2 insertions, 25 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index c2798cf5fd82..39f8b7419b70 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -44,6 +44,7 @@ config SPARC | |||
44 | select ODD_RT_SIGACTION | 44 | select ODD_RT_SIGACTION |
45 | select GENERIC_SIGALTSTACK | 45 | select GENERIC_SIGALTSTACK |
46 | select GENERIC_COMPAT_RT_SIGPROCMASK | 46 | select GENERIC_COMPAT_RT_SIGPROCMASK |
47 | select GENERIC_COMPAT_RT_SIGPENDING | ||
47 | 48 | ||
48 | config SPARC32 | 49 | config SPARC32 |
49 | def_bool !64BIT | 50 | def_bool !64BIT |
diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c index 2b4e57fbf047..35fc3acda9f6 100644 --- a/arch/sparc/kernel/sys_sparc32.c +++ b/arch/sparc/kernel/sys_sparc32.c | |||
@@ -211,30 +211,6 @@ asmlinkage long compat_sys_sysfs(int option, u32 arg1, u32 arg2) | |||
211 | return sys_sysfs(option, arg1, arg2); | 211 | return sys_sysfs(option, arg1, arg2); |
212 | } | 212 | } |
213 | 213 | ||
214 | asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set, | ||
215 | compat_size_t sigsetsize) | ||
216 | { | ||
217 | sigset_t s; | ||
218 | compat_sigset_t s32; | ||
219 | int ret; | ||
220 | mm_segment_t old_fs = get_fs(); | ||
221 | |||
222 | set_fs (KERNEL_DS); | ||
223 | ret = sys_rt_sigpending((sigset_t __user *) &s, sigsetsize); | ||
224 | set_fs (old_fs); | ||
225 | if (!ret) { | ||
226 | switch (_NSIG_WORDS) { | ||
227 | case 4: s32.sig[7] = (s.sig[3] >> 32); s32.sig[6] = s.sig[3]; | ||
228 | case 3: s32.sig[5] = (s.sig[2] >> 32); s32.sig[4] = s.sig[2]; | ||
229 | case 2: s32.sig[3] = (s.sig[1] >> 32); s32.sig[2] = s.sig[1]; | ||
230 | case 1: s32.sig[1] = (s.sig[0] >> 32); s32.sig[0] = s.sig[0]; | ||
231 | } | ||
232 | if (copy_to_user (set, &s32, sizeof(compat_sigset_t))) | ||
233 | return -EFAULT; | ||
234 | } | ||
235 | return ret; | ||
236 | } | ||
237 | |||
238 | asmlinkage long compat_sys_rt_sigqueueinfo(int pid, int sig, | 214 | asmlinkage long compat_sys_rt_sigqueueinfo(int pid, int sig, |
239 | struct compat_siginfo __user *uinfo) | 215 | struct compat_siginfo __user *uinfo) |
240 | { | 216 | { |
diff --git a/arch/sparc/kernel/systbls_64.S b/arch/sparc/kernel/systbls_64.S index 83ec8d467083..f2b7f6792428 100644 --- a/arch/sparc/kernel/systbls_64.S +++ b/arch/sparc/kernel/systbls_64.S | |||
@@ -38,7 +38,7 @@ sys_call_table32: | |||
38 | .word sys32_swapon, sys32_getitimer, sys_setuid, sys32_sethostname, sys_setgid | 38 | .word sys32_swapon, sys32_getitimer, sys_setuid, sys32_sethostname, sys_setgid |
39 | /*90*/ .word sys_dup2, sys_setfsuid, compat_sys_fcntl, sys32_select, sys_setfsgid | 39 | /*90*/ .word sys_dup2, sys_setfsuid, compat_sys_fcntl, sys32_select, sys_setfsgid |
40 | .word sys_fsync, sys32_setpriority, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall | 40 | .word sys_fsync, sys32_setpriority, sys_nis_syscall, sys_nis_syscall, sys_nis_syscall |
41 | /*100*/ .word sys32_getpriority, sys32_rt_sigreturn, sys32_rt_sigaction, sys32_rt_sigprocmask, sys32_rt_sigpending | 41 | /*100*/ .word sys32_getpriority, sys32_rt_sigreturn, sys32_rt_sigaction, sys32_rt_sigprocmask, compat_sys_rt_sigpending |
42 | .word compat_sys_rt_sigtimedwait, sys32_rt_sigqueueinfo, compat_sys_rt_sigsuspend, sys_setresuid, sys_getresuid | 42 | .word compat_sys_rt_sigtimedwait, sys32_rt_sigqueueinfo, compat_sys_rt_sigsuspend, sys_setresuid, sys_getresuid |
43 | /*110*/ .word sys_setresgid, sys_getresgid, sys_setregid, sys_nis_syscall, sys_nis_syscall | 43 | /*110*/ .word sys_setresgid, sys_getresgid, sys_setregid, sys_nis_syscall, sys_nis_syscall |
44 | .word sys32_getgroups, compat_sys_gettimeofday, sys32_getrusage, sys_nis_syscall, sys_getcwd | 44 | .word sys32_getgroups, compat_sys_gettimeofday, sys32_getrusage, sys_nis_syscall, sys_getcwd |