cris: switch to generic old sigsuspend
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9df794d927
commit
86df89a084
|
@ -51,6 +51,7 @@ config CRIS
|
||||||
select MODULES_USE_ELF_RELA
|
select MODULES_USE_ELF_RELA
|
||||||
select CLONE_BACKWARDS2
|
select CLONE_BACKWARDS2
|
||||||
select GENERIC_SIGALTSTACK
|
select GENERIC_SIGALTSTACK
|
||||||
|
select OLD_SIGSUSPEND
|
||||||
|
|
||||||
config HZ
|
config HZ
|
||||||
int
|
int
|
||||||
|
|
|
@ -41,18 +41,6 @@
|
||||||
|
|
||||||
void do_signal(int canrestart, struct pt_regs *regs);
|
void do_signal(int canrestart, struct pt_regs *regs);
|
||||||
|
|
||||||
/*
|
|
||||||
* Atomically swap in the new signal mask, and wait for a signal. Define
|
|
||||||
* dummy arguments to be able to reach the regs argument. (Note that this
|
|
||||||
* arrangement relies on old_sigset_t occupying one register.)
|
|
||||||
*/
|
|
||||||
int sys_sigsuspend(old_sigset_t mask)
|
|
||||||
{
|
|
||||||
sigset_t blocked;
|
|
||||||
siginitset(&blocked, mask);
|
|
||||||
return sigsuspend(&blocked);
|
|
||||||
}
|
|
||||||
|
|
||||||
int sys_sigaction(int sig, const struct old_sigaction __user *act,
|
int sys_sigaction(int sig, const struct old_sigaction __user *act,
|
||||||
struct old_sigaction *oact)
|
struct old_sigaction *oact)
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,17 +51,6 @@ struct rt_signal_frame {
|
||||||
void do_signal(int restart, struct pt_regs *regs);
|
void do_signal(int restart, struct pt_regs *regs);
|
||||||
void keep_debug_flags(unsigned long oldccs, unsigned long oldspc,
|
void keep_debug_flags(unsigned long oldccs, unsigned long oldspc,
|
||||||
struct pt_regs *regs);
|
struct pt_regs *regs);
|
||||||
/*
|
|
||||||
* Swap in the new signal mask, and wait for a signal. Define some
|
|
||||||
* dummy arguments to be able to reach the regs argument.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
sys_sigsuspend(old_sigset_t mask)
|
|
||||||
{
|
|
||||||
sigset_t blocked;
|
|
||||||
siginitset(&blocked, mask);
|
|
||||||
return sigsuspend(&blocked);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
sys_sigaction(int signal, const struct old_sigaction *act,
|
sys_sigaction(int signal, const struct old_sigaction *act,
|
||||||
|
|
Loading…
Reference in New Issue