diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-02-08 07:58:41 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-02-08 12:52:24 -0500 |
commit | 7b3e2fc847c8325a7b35185fa1fc2f1729ed9c5b (patch) | |
tree | b6e8728ad6cbf756f049b9dea106b679230710a7 /arch/mips/kernel/signal32.c | |
parent | ac171c46667c1cb2ee9e22312291df6ed78e1b6e (diff) |
[MIPS] Add support for TIF_RESTORE_SIGMASK.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
Diffstat (limited to 'arch/mips/kernel/signal32.c')
-rw-r--r-- | arch/mips/kernel/signal32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c index 136260c8f756..da3271e1fdac 100644 --- a/arch/mips/kernel/signal32.c +++ b/arch/mips/kernel/signal32.c | |||
@@ -694,11 +694,11 @@ int setup_frame_32(struct k_sigaction * ka, struct pt_regs *regs, | |||
694 | current->comm, current->pid, | 694 | current->comm, current->pid, |
695 | frame, regs->cp0_epc, frame->sf_code); | 695 | frame, regs->cp0_epc, frame->sf_code); |
696 | #endif | 696 | #endif |
697 | return 1; | 697 | return 0; |
698 | 698 | ||
699 | give_sigsegv: | 699 | give_sigsegv: |
700 | force_sigsegv(signr, current); | 700 | force_sigsegv(signr, current); |
701 | return 0; | 701 | return -EFAULT; |
702 | } | 702 | } |
703 | 703 | ||
704 | int setup_rt_frame_32(struct k_sigaction * ka, struct pt_regs *regs, | 704 | int setup_rt_frame_32(struct k_sigaction * ka, struct pt_regs *regs, |
@@ -765,11 +765,11 @@ int setup_rt_frame_32(struct k_sigaction * ka, struct pt_regs *regs, | |||
765 | current->comm, current->pid, | 765 | current->comm, current->pid, |
766 | frame, regs->cp0_epc, frame->rs_code); | 766 | frame, regs->cp0_epc, frame->rs_code); |
767 | #endif | 767 | #endif |
768 | return 1; | 768 | return 0; |
769 | 769 | ||
770 | give_sigsegv: | 770 | give_sigsegv: |
771 | force_sigsegv(signr, current); | 771 | force_sigsegv(signr, current); |
772 | return 0; | 772 | return -EFAULT; |
773 | } | 773 | } |
774 | 774 | ||
775 | static inline int handle_signal(unsigned long sig, siginfo_t *info, | 775 | static inline int handle_signal(unsigned long sig, siginfo_t *info, |