fork/sched: Modify copy_process to make task_thread_structs

This patch updates the fork() logic to no longer allocate task_structs
and thread_info's separately.  The new task_thread_struct is now
allocated from a single slab, and a new stack is allocated from another

Currently this code is broken, since it appears that when switching to
a newly created process, the stack jump is going somewhere incorrect.
This is just to get this into a tree so debugging can continue.

Signed-off-by: Peter P Waskiewicz Jr <>
3 files changed