Do not depend on pcb_savefpu backwards compat #define.
This commit is contained in:
parent
97e5eec61a
commit
8771bd7eb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79627
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user