summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-07-12 12:19:11 +0000
committerpeter <peter@FreeBSD.org>2001-07-12 12:19:11 +0000
commita5f5f72a7b265bdf3d2cb335da4cf90306b3d84b (patch)
treebfddd26b475d2ffbf993f7aa79e914799c70a249 /sys
parenta8bbb8398cc5a99bb7b8fe3571a722b5e89b81ba (diff)
downloadFreeBSD-src-a5f5f72a7b265bdf3d2cb335da4cf90306b3d84b.zip
FreeBSD-src-a5f5f72a7b265bdf3d2cb335da4cf90306b3d84b.tar.gz
Do not depend on pcb_savefpu backwards compat #define.
Diffstat (limited to 'sys')
-rw-r--r--sys/gnu/i386/fpemul/fpu_system.h2
-rw-r--r--sys/i386/i386/math_emu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_system.h b/sys/gnu/i386/fpemul/fpu_system.h
index aff0a0d..a77f0c2 100644
--- a/sys/gnu/i386/fpemul/fpu_system.h
+++ b/sys/gnu/i386/fpemul/fpu_system.h
@@ -69,7 +69,7 @@
#include <linux/kernel.h>
*/
-#define I387 (*(union i387_union *)&(((struct pcb *)curproc->p_addr)->pcb_savefpu))
+#define I387 (*(union i387_union *)&(((struct pcb *)curproc->p_addr)->pcb_save.sv_87))
#define FPU_info (I387.soft.frame)
#define FPU_CS (*(unsigned short *) &(FPU_info->tf_cs))
diff --git a/sys/i386/i386/math_emu.h b/sys/i386/i386/math_emu.h
index 6e189b4..545a87d 100644
--- a/sys/i386/i386/math_emu.h
+++ b/sys/i386/i386/math_emu.h
@@ -69,7 +69,7 @@ struct i387_struct {
int32_t st_space[20]; /* 8*10 bytes for each FP-reg = 80 bytes */
};
-#define I387 (*(struct i387_struct *)&(((struct pcb *)curproc->p_addr)->pcb_savefpu))
+#define I387 (*(struct i387_struct *)&(((struct pcb *)curproc->p_addr)->pcb_save.sv_87))
#define SWD (*(struct swd *) &I387.swd)
#define ROUNDING ((I387.cwd >> 10) & 3)
#define PRECISION ((I387.cwd >> 8) & 3)
OpenPOWER on IntegriCloud