]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] frv: fix signal handling
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Jan 2006 08:11:44 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:33 +0000 (08:33 -0800)
commitd93d2f2c2ffc5e7146bb3ee7588fe5d17e76bdd0
tree3598a874f715e89d475a9bc8a435a1096f19c58d
parent6ac6223a97e0d823cc5b881c5f052c8df3038ff8
[PATCH] frv: fix signal handling

The attached patch makes FRV signal handling work properly:

 (1) After do_notify_resume() has been called, the work flags must be checked
     again (there may be another signal to deliver or the process might require
     rescheduling for instance).

 (2) After the signal frame is set up on the userspace stack, ptrace() should
     be given an opportunity to single-step into the signal handler.

 (3) The error state from setting up a signal frame should be passed back up
     the call chain.

 (4) The segfault handler shouldn't be preemptively reset in the arch if we
     fail to deliver a SEGV signal: force_sig() will take care of that.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/frv/kernel/entry.S
arch/frv/kernel/signal.c