procfs: provide stack information for threads
[linux-2.6.git] / kernel / fork.c
index 7cf4581..8f45b0e 100644 (file)
@@ -1095,6 +1095,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 
        p->bts = NULL;
 
+       p->stack_start = stack_start;
+
        /* Perform scheduler related setup. Assign this task to a CPU. */
        sched_fork(p, clone_flags);