Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/alpha/alpha pullup 1.116->1.117 (ross)



details:   https://anonhg.NetBSD.org/src/rev/76feec60500a
branches:  netbsd-1-4
changeset: 468544:76feec60500a
user:      perry <perry%NetBSD.org@localhost>
date:      Thu Apr 29 14:41:58 1999 +0000

description:
pullup 1.116->1.117 (ross)

diffstat:

 sys/arch/alpha/alpha/machdep.c |  15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 3828a707a0d4 -r 76feec60500a sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Thu Apr 29 14:39:43 1999 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Thu Apr 29 14:41:58 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.167.2.3 1999/04/16 23:26:17 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.167.2.4 1999/04/29 14:41:58 perry Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167.2.3 1999/04/16 23:26:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167.2.4 1999/04/29 14:41:58 perry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -137,6 +137,7 @@
 #include <machine/rpb.h>
 #include <machine/prom.h>
 #include <machine/conf.h>
+#include <machine/ieeefp.h>
 
 #include <alpha/alpha/cpuvar.h>
 
@@ -1930,8 +1931,14 @@
        bzero(tfp->tf_regs, FRAME_SIZE * sizeof tfp->tf_regs[0]);
 #endif
        bzero(&p->p_addr->u_pcb.pcb_fp, sizeof p->p_addr->u_pcb.pcb_fp);
-#define FP_RN 2 /* XXX */
-       p->p_addr->u_pcb.pcb_fp.fpr_cr = (long)FP_RN << 58;
+       p->p_addr->u_pcb.pcb_fp.fpr_cr =  FPCR_INED
+                                       | FPCR_UNFD
+                                       | FPCR_UNDZ
+                                       | FPCR_DYN(FP_RN)
+                                       | FPCR_OVFD
+                                       | FPCR_DZED
+                                       | FPCR_INVD
+                                       | FPCR_DNZ;
        alpha_pal_wrusp(stack);
        tfp->tf_regs[FRAME_PS] = ALPHA_PSL_USERSET;
        tfp->tf_regs[FRAME_PC] = pack->ep_entry & ~3;



Home | Main Index | Thread Index | Old Index