summaryrefslogtreecommitdiff
path: root/sys/gnu/fpemul/math_emu.h
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
commit5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch)
treee779b5a6edddbb949b7990751b12d6f25304ba86 /sys/gnu/fpemul/math_emu.h
parenta16f65c7d117419bd266c28a1901ef129a337569 (diff)
Diffstat (limited to 'sys/gnu/fpemul/math_emu.h')
-rw-r--r--sys/gnu/fpemul/math_emu.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/sys/gnu/fpemul/math_emu.h b/sys/gnu/fpemul/math_emu.h
new file mode 100644
index 000000000000..031d391595b5
--- /dev/null
+++ b/sys/gnu/fpemul/math_emu.h
@@ -0,0 +1,47 @@
+/*
+ *
+ * $Id: math_emu.h,v 1.2 1994/04/29 21:23:24 gclarkii Exp $
+ *
+ */
+
+#ifndef _MATH_EMU_H
+#define _MATH_EMU_H
+
+struct fpu_reg {
+ char sign;
+ char tag;
+ long exp;
+ u_long sigl;
+ u_long sigh;
+};
+
+union i387_union {
+ struct i387_hard_struct {
+ long cwd;
+ long swd;
+ long twd;
+ long fip;
+ long fcs;
+ long foo;
+ long fos;
+ long st_space[20]; /* 8*10 bytes for each FP-reg = 80
+ * bytes */
+ } hard;
+ struct i387_soft_struct {
+ long cwd;
+ long swd;
+ long twd;
+ long fip;
+ long fcs;
+ long foo;
+ long fos;
+ long top;
+ struct fpu_reg regs[8]; /* 8*16 bytes for each FP-reg = 128
+ * bytes */
+ unsigned char lookahead;
+ struct trapframe *frame;
+ unsigned long entry_eip;
+ int orig_eip;
+ } soft;
+};
+#endif