Hideo Saito e6bcf562e5 sh: Fix kernel thread stack corruption with preempt.
When I run a preemptive kernel-2.6.20 for SH7780, a created
kthread(pdflush) can not exit by do_exit() in kernel_thread_helper. I
think that the created kthread should have a room for 'struct pt_regs'
space on the stack top, because __switch_to() will refer to the space as
follows using 'regs = task_pt_regs(prev)' and next condition may be true.

Signed-off-by: Hideo Saito <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2007-03-05 14:13:26 +09:00
..
2006-12-06 10:45:40 +09:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:32 -08:00
2007-03-05 14:13:25 +09:00
2007-02-15 18:20:52 +09:00
2006-09-27 18:25:24 +09:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-27 16:20:22 +09:00
2007-03-05 14:13:25 +09:00
2005-04-16 15:20:36 -07:00
2007-02-13 10:54:46 +09:00