From 8771bd7eb077bcb9db984a6ed56321bea0c29a83 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 12 Jul 2001 12:19:11 +0000 Subject: [PATCH] Do not depend on pcb_savefpu backwards compat #define. --- sys/gnu/i386/fpemul/fpu_system.h | 2 +- sys/i386/i386/math_emu.h | 2 +- 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 aff0a0d9114b..a77f0c2f45ec 100644 --- a/sys/gnu/i386/fpemul/fpu_system.h +++ b/sys/gnu/i386/fpemul/fpu_system.h @@ -69,7 +69,7 @@ #include */ -#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 6e189b4a5594..545a87d8cac8 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)