sh: switch to generic old sigsuspend()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7a879a94d9
commit
881e252d6b
4 changed files with 1 additions and 23 deletions
|
@ -41,6 +41,7 @@ config SUPERH
|
||||||
select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
|
select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
|
||||||
select MODULES_USE_ELF_RELA
|
select MODULES_USE_ELF_RELA
|
||||||
select GENERIC_SIGALTSTACK
|
select GENERIC_SIGALTSTACK
|
||||||
|
select OLD_SIGSUSPEND
|
||||||
help
|
help
|
||||||
The SuperH is a RISC processor targeted for use in embedded systems
|
The SuperH is a RISC processor targeted for use in embedded systems
|
||||||
and consumer electronics; it was also used in the Sega Dreamcast
|
and consumer electronics; it was also used in the Sega Dreamcast
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
struct pt_regs;
|
struct pt_regs;
|
||||||
|
|
||||||
asmlinkage int sys_sigsuspend(old_sigset_t mask);
|
|
||||||
asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
|
asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
|
||||||
struct old_sigaction __user *oact);
|
struct old_sigaction __user *oact);
|
||||||
asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
|
asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
|
||||||
|
|
|
@ -46,17 +46,6 @@ struct fdpic_func_descriptor {
|
||||||
*/
|
*/
|
||||||
#define UNWINDGUARD 64
|
#define UNWINDGUARD 64
|
||||||
|
|
||||||
/*
|
|
||||||
* Atomically swap in the new signal mask, and wait for a signal.
|
|
||||||
*/
|
|
||||||
asmlinkage int
|
|
||||||
sys_sigsuspend(old_sigset_t mask)
|
|
||||||
{
|
|
||||||
sigset_t blocked;
|
|
||||||
siginitset(&blocked, mask);
|
|
||||||
return sigsuspend(&blocked);
|
|
||||||
}
|
|
||||||
|
|
||||||
asmlinkage int
|
asmlinkage int
|
||||||
sys_sigaction(int sig, const struct old_sigaction __user *act,
|
sys_sigaction(int sig, const struct old_sigaction __user *act,
|
||||||
struct old_sigaction __user *oact)
|
struct old_sigaction __user *oact)
|
||||||
|
|
|
@ -127,17 +127,6 @@ static void do_signal(struct pt_regs *regs)
|
||||||
restore_saved_sigmask();
|
restore_saved_sigmask();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Atomically swap in the new signal mask, and wait for a signal.
|
|
||||||
*/
|
|
||||||
asmlinkage int
|
|
||||||
sys_sigsuspend(old_sigset_t mask)
|
|
||||||
{
|
|
||||||
sigset_t blocked;
|
|
||||||
siginitset(&blocked, mask);
|
|
||||||
return sigsuspend(&blocked);
|
|
||||||
}
|
|
||||||
|
|
||||||
asmlinkage int
|
asmlinkage int
|
||||||
sys_sigaction(int sig, const struct old_sigaction __user *act,
|
sys_sigaction(int sig, const struct old_sigaction __user *act,
|
||||||
struct old_sigaction __user *oact)
|
struct old_sigaction __user *oact)
|
||||||
|
|
Loading…
Add table
Reference in a new issue