patch-2.4.10 linux/arch/ppc/kernel/process.c
Next file: linux/arch/ppc/kernel/prom.c
Previous file: linux/arch/ppc/kernel/prep_time.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon Sep 17 15:29:09 2001
- Orig file:
v2.4.9/linux/arch/ppc/kernel/process.c
- Orig date:
Wed Jul 25 17:10:18 2001
diff -u --recursive --new-file v2.4.9/linux/arch/ppc/kernel/process.c linux/arch/ppc/kernel/process.c
@@ -1,5 +1,5 @@
/*
- * BK Id: SCCS/s.process.c 1.23 07/19/01 23:02:48 paulus
+ * BK Id: SCCS/s.process.c 1.27 08/28/01 22:01:21 paulus
*/
/*
* linux/arch/ppc/kernel/process.c
@@ -48,7 +48,6 @@
struct task_struct *last_task_used_math = NULL;
struct task_struct *last_task_used_altivec = NULL;
-static struct vm_area_struct init_mmap = INIT_MMAP;
static struct fs_struct init_fs = INIT_FS;
static struct files_struct init_files = INIT_FILES;
static struct signal_struct init_signals = INIT_SIGNALS;
@@ -59,8 +58,6 @@
};
/* only used to get secondary processor up */
struct task_struct *current_set[NR_CPUS] = {&init_task, };
-char *sysmap = NULL;
-unsigned long sysmap_size = 0;
#undef SHOW_TASK_SWITCHES
#undef CHECK_STACK
@@ -324,7 +321,6 @@
unsigned long unused,
struct task_struct *p, struct pt_regs *regs)
{
- unsigned long msr;
struct pt_regs *childregs, *kregs;
extern void ret_from_fork(void);
unsigned long sp = (unsigned long)p + sizeof(union task_union);
@@ -362,11 +358,12 @@
* copy fpu info - assume lazy fpu switch now always
* -- Cort
*/
- if (regs->msr & MSR_FP)
+ if (regs->msr & MSR_FP) {
giveup_fpu(current);
+ childregs->msr &= ~(MSR_FP | MSR_FE0 | MSR_FE1);
+ }
memcpy(&p->thread.fpr, ¤t->thread.fpr, sizeof(p->thread.fpr));
p->thread.fpscr = current->thread.fpscr;
- childregs->msr &= ~MSR_FP;
#ifdef CONFIG_ALTIVEC
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)