]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
CRIS v10: correct do_signal to fix oops and clean up signal handling in general
authorJesper Nilsson <jesper.nilsson@axis.com>
Mon, 14 Jan 2008 08:55:22 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:23 +0000 (08:52 -0800)
commita4858d4dab4580ec8b1fb7576f91522b6962502c
treed3b356a3f021bdffbef5d3803264b0a25a8bb1ac
parent3ea0345be38555c6a1a04ed7e9c015a42e76bd0e
CRIS v10: correct do_signal to fix oops and clean up signal handling in general

This fixes a kernel panic on boot due to do_signal not being compatible
with it's callers.

- do_signal now returns void, and does not have the previous signal set
  as a parameter.
- Remove sys_rt_sigsuspend, we can use the common one instead.
- Change sys_sigsuspend to be more like x86, don't call do_signal here.
- handle_signal, setup_frame and setup_rt_frame now return -EFAULT
  if we've delivered a segfault, which is used by callers to perform
  necessary cleanup.
- Break long lines, correct whitespace and formatting errors.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <mikael.starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/cris/arch-v10/kernel/signal.c