summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-05-30 22:12:33 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-05-30 22:12:33 +0000
commit3cc7df8ba7d549827803d4e76d19326a7fa035fa (patch)
treee6d059a46bb017b9493a5d9a0213474674574854 /sys/arch
parentc06316cc6d2f363b44052c6a7080efc476478a54 (diff)
Only enable the FPU when the process has an FPU context. ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c
index 1154877cb97..eb820cb95d5 100644
--- a/sys/arch/powerpc/powerpc/trap.c
+++ b/sys/arch/powerpc/powerpc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.67 2005/04/21 04:39:35 mickey Exp $ */
+/* $OpenBSD: trap.c,v 1.68 2005/05/30 22:12:32 drahn Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
@@ -666,7 +666,7 @@ for (i = 0; i < errnum; i++) {
*/
if (p != fpuproc)
frame->srr1 &= ~PSL_FP;
- else
+ else if (p->p_addr->u_pcb.pcb_flags & PCB_FPU)
frame->srr1 |= PSL_FP;
#ifdef ALTIVEC