Do not depend on pcb_savefpu backwards compat #define.
This commit is contained in:
parent
a8bbb8398c
commit
a5f5f72a7b
@ -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