aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/signal.c')
-rw-r--r--arch/sparc64/kernel/signal.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/sparc64/kernel/signal.c b/arch/sparc64/kernel/signal.c
index 314f51aefa0f..f2d88d8f7a42 100644
--- a/arch/sparc64/kernel/signal.c
+++ b/arch/sparc64/kernel/signal.c
@@ -513,11 +513,10 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
513 struct k_sigaction ka; 513 struct k_sigaction ka;
514 sigset_t *oldset; 514 sigset_t *oldset;
515 siginfo_t info; 515 siginfo_t info;
516 int signr, tt; 516 int signr;
517 517
518 tt = regs->magic & 0x1ff; 518 if (pt_regs_is_syscall(regs)) {
519 if (tt == 0x110 || tt == 0x111 || tt == 0x16d) { 519 pt_regs_clear_trap_type(regs);
520 regs->magic &= ~0x1ff;
521 cookie.restart_syscall = 1; 520 cookie.restart_syscall = 1;
522 } else 521 } else
523 cookie.restart_syscall = 0; 522 cookie.restart_syscall = 0;