Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/arch/i386/include Pull up following revision(s) (re...



details:   https://anonhg.NetBSD.org/src/rev/52d7ebc693f7
branches:  netbsd-2-0
changeset: 564862:52d7ebc693f7
user:      riz <riz%NetBSD.org@localhost>
date:      Tue Oct 11 17:14:30 2005 +0000

description:
Pull up following revision(s) (requested by christos in ticket #5923):
        sys/arch/i386/include/npx.h: revision 1.21
Add defines for the control and status bits of the 80387.

diffstat:

 sys/arch/i386/include/npx.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r c2c16f0e97ee -r 52d7ebc693f7 sys/arch/i386/include/npx.h
--- a/sys/arch/i386/include/npx.h       Tue Oct 11 17:00:09 2005 +0000
+++ b/sys/arch/i386/include/npx.h       Tue Oct 11 17:14:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npx.h,v 1.20 2003/08/07 16:27:59 agc Exp $     */
+/*     $NetBSD: npx.h,v 1.20.2.1 2005/10/11 17:14:30 riz Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -150,6 +150,21 @@
  */
 #define        __INITIAL_MXCSR__       0x1f80
 
+
+/*
+ * 80387 control word bits
+ */
+#define EN_SW_INVOP    0x0001  /* Invalid operation */
+#define EN_SW_DENORM   0x0002  /* Denormalized operand */
+#define EN_SW_ZERODIV  0x0004  /* Divide by zero */
+#define EN_SW_OVERFLOW 0x0008  /* Overflow */
+#define EN_SW_UNDERFLOW        0x0010  /* Underflow */
+#define EN_SW_PRECLOSS 0x0020  /* Loss of precision */
+#define EN_SW_DATACHAIN        0x0080  /* Data chain exception */
+#define EN_SW_CTL_PREC 0x0300  /* Precision control */
+#define EN_SW_CTL_ROUND        0x0c00  /* Rounding control */
+#define EN_SW_CTL_INF  0x1000  /* Infinity control */
+
 /*
  * The standard control word from finit is 0x37F, giving:
  *     round to nearest



Home | Main Index | Thread Index | Old Index