Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc On FPU'ed systems, initialize the d...
details: https://anonhg.NetBSD.org/src/rev/b957fd6f7162
branches: trunk
changeset: 565323:b957fd6f7162
user: matt <matt%NetBSD.org@localhost>
date: Sun Apr 04 16:57:00 2004 +0000
description:
On FPU'ed systems, initialize the default FP exception mode.
diffstat:
sys/arch/powerpc/powerpc/vm_machdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 9fb009609a03 -r b957fd6f7162 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c Sun Apr 04 16:49:12 2004 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c Sun Apr 04 16:57:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.58 2004/01/04 11:33:31 jdolecek Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.59 2004/04/04 16:57:00 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.58 2004/01/04 11:33:31 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.59 2004/04/04 16:57:00 matt Exp $");
#include "opt_altivec.h"
#include "opt_multiprocessor.h"
@@ -188,6 +188,9 @@
pcb->pcb_sp = (register_t)sf;
pcb->pcb_kmapsr = 0;
pcb->pcb_umapsr = 0;
+#ifdef PPC_HAVE_FPU
+ pcb->pcb_flags = PSL_FE_DFLT;
+#endif
}
void
Home |
Main Index |
Thread Index |
Old Index