]> err.no Git - linux-2.6/commit
[PATCH] uml: add arch_switch_to for newly forked thread
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 31 Mar 2006 10:30:24 +0000 (02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:52 +0000 (12:18 -0800)
commit54d8d3b5a0ce1cdbad1d3154c9ea9732d394e9c7
tree129a29ab92fba7dc99229c87a38fe8df3ade7b15
parentdd77aec07aec5cb81aed3b4ef79c1ff8bd0e2a68
[PATCH] uml: add arch_switch_to for newly forked thread

Newly forked threads have no arch_switch_to_skas() called before their first
run, because when schedule() switches to them they're resumed in the body of
thread_wait() inside fork_handler() rather than in switch_threads() in
switch_to_skas().  Compensate this missing call.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/skas/process_kern.c
arch/um/sys-i386/ptrace.c
arch/um/sys-i386/tls.c