aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/kernel/signal.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/m68k/kernel/signal.c b/arch/m68k/kernel/signal.c
index 685cbe84f33f..c83eb5a8ed8b 100644
--- a/arch/m68k/kernel/signal.c
+++ b/arch/m68k/kernel/signal.c
@@ -1123,8 +1123,9 @@ handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler)
1123 */ 1123 */
1124static void 1124static void
1125handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info, 1125handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info,
1126 sigset_t *oldset, struct pt_regs *regs) 1126 struct pt_regs *regs)
1127{ 1127{
1128 sigset_t *oldset = sigmask_to_save();
1128 int err; 1129 int err;
1129 /* are we from a system call? */ 1130 /* are we from a system call? */
1130 if (regs->orig_d0 >= 0) 1131 if (regs->orig_d0 >= 0)
@@ -1160,19 +1161,13 @@ static void do_signal(struct pt_regs *regs)
1160 siginfo_t info; 1161 siginfo_t info;
1161 struct k_sigaction ka; 1162 struct k_sigaction ka;
1162 int signr; 1163 int signr;
1163 sigset_t *oldset;
1164 1164
1165 current->thread.esp0 = (unsigned long) regs; 1165 current->thread.esp0 = (unsigned long) regs;
1166 1166
1167 if (test_thread_flag(TIF_RESTORE_SIGMASK))
1168 oldset = &current->saved_sigmask;
1169 else
1170 oldset = &current->blocked;
1171
1172 signr = get_signal_to_deliver(&info, &ka, regs, NULL); 1167 signr = get_signal_to_deliver(&info, &ka, regs, NULL);
1173 if (signr > 0) { 1168 if (signr > 0) {
1174 /* Whee! Actually deliver the signal. */ 1169 /* Whee! Actually deliver the signal. */
1175 handle_signal(signr, &ka, &info, oldset, regs); 1170 handle_signal(signr, &ka, &info, regs);
1176 return; 1171 return;
1177 } 1172 }
1178 1173