summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-02-08 20:21:34 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-02-08 20:21:34 +0000
commit7cdf9c4242b5b7690f4d59ca4806264ca7b8a3dc (patch)
tree67463fcb60ca7346cfd4c2bb75e78f7d6fd05b99 /sys/arch
parentd2c643953f30b661d97df2e254267f5c1bc5d587 (diff)
Add definitions for the exception bits in the status word
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/include/npx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/arch/i386/include/npx.h b/sys/arch/i386/include/npx.h
index 5d23bcf7d0d..4938e1d7da1 100644
--- a/sys/arch/i386/include/npx.h
+++ b/sys/arch/i386/include/npx.h
@@ -58,6 +58,13 @@ struct env87 {
long en_fos; /* floating operand segment selector */
};
+#define EN_SW_IE 0x0001 /* invalid operation */
+#define EN_SW_DE 0x0002 /* denormal */
+#define EN_SW_ZE 0x0004 /* divide by zero */
+#define EN_SW_OE 0x0008 /* overflow */
+#define EN_SW_UE 0x0010 /* underflow */
+#define EN_SW_PE 0x0020 /* loss of precision */
+
/* Contents of each floating point accumulator */
struct fpacc87 {
#ifdef dontdef /* too unportable */