diff options
Diffstat (limited to 'arch/um/kernel/tt/process_kern.c')
-rw-r--r-- | arch/um/kernel/tt/process_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/tt/process_kern.c b/arch/um/kernel/tt/process_kern.c index 1f7dec87b6c1..62535303aa27 100644 --- a/arch/um/kernel/tt/process_kern.c +++ b/arch/um/kernel/tt/process_kern.c | |||
@@ -253,7 +253,7 @@ int copy_thread_tt(int nr, unsigned long clone_flags, unsigned long sp, | |||
253 | 253 | ||
254 | clone_flags &= CLONE_VM; | 254 | clone_flags &= CLONE_VM; |
255 | p->thread.temp_stack = stack; | 255 | p->thread.temp_stack = stack; |
256 | new_pid = start_fork_tramp(p->thread_info, stack, clone_flags, tramp); | 256 | new_pid = start_fork_tramp(task_stack_page(p), stack, clone_flags, tramp); |
257 | if(new_pid < 0){ | 257 | if(new_pid < 0){ |
258 | printk(KERN_ERR "copy_thread : clone failed - errno = %d\n", | 258 | printk(KERN_ERR "copy_thread : clone failed - errno = %d\n", |
259 | -new_pid); | 259 | -new_pid); |
@@ -425,7 +425,7 @@ int start_uml_tt(void) | |||
425 | int pages; | 425 | int pages; |
426 | 426 | ||
427 | pages = (1 << CONFIG_KERNEL_STACK_ORDER); | 427 | pages = (1 << CONFIG_KERNEL_STACK_ORDER); |
428 | sp = (void *) ((unsigned long) init_task.thread_info) + | 428 | sp = task_stack_page(&init_task) + |
429 | pages * PAGE_SIZE - sizeof(unsigned long); | 429 | pages * PAGE_SIZE - sizeof(unsigned long); |
430 | return(tracer(start_kernel_proc, sp)); | 430 | return(tracer(start_kernel_proc, sp)); |
431 | } | 431 | } |