Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227838
b: refs/heads/master
c: 9e4930d
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Geert Uytterhoeven committed Jan 7, 2011
1 parent f7b957c commit 2bd9d5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e68847fee706c6fe74c9afc3288c3adfc131b1fa
refs/heads/master: 9e4930dbf17c1eba72631cd52a0c621da3d1a816
6 changes: 1 addition & 5 deletions trunk/arch/m68k/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ do_signal_return:
addql #4,%sp
RESTORE_SWITCH_STACK
addql #4,%sp
tstl %d0
jeq resume_userspace
| when single stepping into handler stop at the first insn
btst #6,%curptr@(TASK_INFO+TINFO_FLAGS+2)
jeq resume_userspace
jbra resume_userspace

do_delayed_trace:
bclr #7,%sp@(PT_OFF_SR) | clear trace bit in SR
Expand Down
11 changes: 7 additions & 4 deletions trunk/arch/m68k/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,14 +978,19 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info,
if (!(ka->sa.sa_flags & SA_NODEFER))
sigaddset(&current->blocked,sig);
recalc_sigpending();

if (test_thread_flag(TIF_DELAYED_TRACE)) {
regs->sr &= ~0x8000;
send_sig(SIGTRAP, current, 1);
}
}

/*
* Note that 'init' is a special process: it doesn't get signals it doesn't
* want to handle. Thus you cannot kill init even with a SIGKILL even by
* mistake.
*/
asmlinkage int do_signal(struct pt_regs *regs)
asmlinkage void do_signal(struct pt_regs *regs)
{
siginfo_t info;
struct k_sigaction ka;
Expand All @@ -1004,7 +1009,7 @@ asmlinkage int do_signal(struct pt_regs *regs)
/* Whee! Actually deliver the signal. */
handle_signal(signr, &ka, &info, oldset, regs);
clear_thread_flag(TIF_RESTORE_SIGMASK);
return 1;
return;
}

/* Did we come from a system call? */
Expand All @@ -1017,6 +1022,4 @@ asmlinkage int do_signal(struct pt_regs *regs)
clear_thread_flag(TIF_RESTORE_SIGMASK);
sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
}

return 0;
}

0 comments on commit 2bd9d5b

Please sign in to comment.