]> git.baikalelectronics.ru Git - kernel.git/commit
uml: don't try to handle signals on initial process stack
authorJeff Dike <jdike@addtoit.com>
Sun, 6 May 2007 21:51:40 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:03 +0000 (12:13 -0700)
commit7306aa7596a75a9979c6cdcf76255d6d3bed06e4
treeb800f241f3d49dce3ef79c7ec2e6cf8ff04e07a7
parent5451a27ff148ea9f6c03a34d48b67ee517899a02
uml: don't try to handle signals on initial process stack

Code running on the initial UML stack can't receive or process signals since
current must be valid when IRQs are handled, and there is no current for this
stack.

So, instead of using UML_LONGJMP and UML_SETJMP, which are careful to save and
restore signal state, and, as a side-effect, handle any deferred signals,
start_idle_thread must use the bare equivalents, which don't do anything with
signals.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/skas/process.c