process.c (d68c51e0b377838dd31b37707813bb62089f399c) | process.c (b0f5a8f32e8bbdaae1abb8abe2d3cbafaba57e08) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 - 1999, 2000 by Ralf Baechle and others. 7 * Copyright (C) 2005, 2006 by Ralf Baechle (ralf@linux-mips.org) 8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. --- 106 unchanged lines hidden (view full) --- 115 * Copy architecture-specific thread state 116 */ 117int copy_thread_tls(unsigned long clone_flags, unsigned long usp, 118 unsigned long kthread_arg, struct task_struct *p, unsigned long tls) 119{ 120 struct thread_info *ti = task_thread_info(p); 121 struct pt_regs *childregs, *regs = current_pt_regs(); 122 unsigned long childksp; | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 - 1999, 2000 by Ralf Baechle and others. 7 * Copyright (C) 2005, 2006 by Ralf Baechle (ralf@linux-mips.org) 8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. --- 106 unchanged lines hidden (view full) --- 115 * Copy architecture-specific thread state 116 */ 117int copy_thread_tls(unsigned long clone_flags, unsigned long usp, 118 unsigned long kthread_arg, struct task_struct *p, unsigned long tls) 119{ 120 struct thread_info *ti = task_thread_info(p); 121 struct pt_regs *childregs, *regs = current_pt_regs(); 122 unsigned long childksp; |
123 p->set_child_tid = p->clear_child_tid = NULL; | |
124 125 childksp = (unsigned long)task_stack_page(p) + THREAD_SIZE - 32; 126 127 /* set up new TSS. */ 128 childregs = (struct pt_regs *) childksp - 1; 129 /* Put the stack after the struct pt_regs. */ 130 childksp = (unsigned long) childregs; 131 p->thread.cp0_status = read_c0_status() & ~(ST0_CU2|ST0_CU1); --- 667 unchanged lines hidden --- | 123 124 childksp = (unsigned long)task_stack_page(p) + THREAD_SIZE - 32; 125 126 /* set up new TSS. */ 127 childregs = (struct pt_regs *) childksp - 1; 128 /* Put the stack after the struct pt_regs. */ 129 childksp = (unsigned long) childregs; 130 p->thread.cp0_status = read_c0_status() & ~(ST0_CU2|ST0_CU1); --- 667 unchanged lines hidden --- |