Do not depend on pcb_savefpu backwards compat #define.

This commit is contained in:
Peter Wemm 2001-07-12 12:19:11 +00:00
parent 97e5eec61a
commit 8771bd7eb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79627
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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)