populate ELF header information on the initial stack so that glibc can set up TLS properly

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2012-10-09 00:51:50 +09:00
parent f1da972bb7
commit 9a8449df2b
7 changed files with 67 additions and 8 deletions

View File

@@ -254,7 +254,7 @@ static void process_msg_prepare_process(unsigned long rphys)
dkprintf("env OK\n");
p->rprocess = (unsigned long)proc;
init_process_stack(proc, argc, argv, envc, env);
init_process_stack(proc, pn, argc, argv, envc, env);
dkprintf("new process : %p [%d] / table : %p\n", proc, proc->pid,
proc->vm->page_table);