patch-2.4.21 linux-2.4.21/arch/s390/kernel/process.c
Next file: linux-2.4.21/arch/s390/kernel/s390_ksyms.c
Previous file: linux-2.4.21/arch/s390/kernel/head.S
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/s390/kernel/process.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.20/arch/s390/kernel/process.c linux-2.4.21/arch/s390/kernel/process.c
@@ -105,7 +105,7 @@
show_trace((unsigned long *) regs->gprs[15]);
}
-int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
+int arch_kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
{
int clone_arg = flags | CLONE_VM;
int retval;
@@ -181,6 +181,8 @@
/* save fprs, if used in last task */
save_fp_regs(&p->thread.fp_regs);
p->thread.user_seg = __pa((unsigned long) p->mm->pgd) | _SEGMENT_TABLE;
+ /* start process with ar4 pointing to the correct address space */
+ p->thread.ar4 = get_fs().ar4;
/* Don't copy debug registers */
memset(&p->thread.per_info,0,sizeof(p->thread.per_info));
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)