Commit 0980caea authored by Al Viro's avatar Al Viro

powerpc: switch to generic old sigsuspend

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 309e44b3
...@@ -148,6 +148,7 @@ config PPC ...@@ -148,6 +148,7 @@ config PPC
select GENERIC_COMPAT_RT_SIGQUEUEINFO select GENERIC_COMPAT_RT_SIGQUEUEINFO
select GENERIC_COMPAT_RT_SIGPROCMASK select GENERIC_COMPAT_RT_SIGPROCMASK
select GENERIC_COMPAT_RT_SIGPENDING select GENERIC_COMPAT_RT_SIGPENDING
select OLD_SIGSUSPEND
config EARLY_PRINTK config EARLY_PRINTK
bool bool
......
...@@ -75,6 +75,7 @@ SYSCALL_SPU(sgetmask) ...@@ -75,6 +75,7 @@ SYSCALL_SPU(sgetmask)
COMPAT_SYS_SPU(ssetmask) COMPAT_SYS_SPU(ssetmask)
SYSCALL_SPU(setreuid) SYSCALL_SPU(setreuid)
SYSCALL_SPU(setregid) SYSCALL_SPU(setregid)
#define compat_sys_sigsuspend sys_sigsuspend
SYS32ONLY(sigsuspend) SYS32ONLY(sigsuspend)
COMPAT_SYS(sigpending) COMPAT_SYS(sigpending)
COMPAT_SYS_SPU(sethostname) COMPAT_SYS_SPU(sethostname)
......
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
#undef DEBUG_SIG #undef DEBUG_SIG
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#define sys_sigsuspend compat_sys_sigsuspend
#define sys_rt_sigreturn compat_sys_rt_sigreturn #define sys_rt_sigreturn compat_sys_rt_sigreturn
#define sys_sigaction compat_sys_sigaction #define sys_sigaction compat_sys_sigaction
#define sys_swapcontext compat_sys_swapcontext #define sys_swapcontext compat_sys_swapcontext
...@@ -238,16 +237,6 @@ static inline int restore_general_regs(struct pt_regs *regs, ...@@ -238,16 +237,6 @@ static inline int restore_general_regs(struct pt_regs *regs,
#endif /* CONFIG_PPC64 */ #endif /* CONFIG_PPC64 */
/*
* Atomically swap in the new signal mask, and wait for a signal.
*/
long sys_sigsuspend(old_sigset_t mask)
{
sigset_t blocked;
siginitset(&blocked, mask);
return sigsuspend(&blocked);
}
long sys_sigaction(int sig, struct old_sigaction __user *act, long sys_sigaction(int sig, struct old_sigaction __user *act,
struct old_sigaction __user *oact) struct old_sigaction __user *oact)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment