summaryrefslogtreecommitdiffstats
path: root/sys/amd64/isa/npx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/isa/npx.c')
-rw-r--r--sys/amd64/isa/npx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c
index 5e4847f..49b1b62 100644
--- a/sys/amd64/isa/npx.c
+++ b/sys/amd64/isa/npx.c
@@ -132,10 +132,6 @@ void stop_emulating __P((void));
(cpu_fxsr ? \
(proc)->p_addr->u_pcb.pcb_save.sv_xmm.sv_env.en_sw : \
(proc)->p_addr->u_pcb.pcb_save.sv_87.sv_env.en_sw)
-#define MASK_FPU_SW(proc, mask) \
- (cpu_fxsr ? \
- (proc)->p_addr->u_pcb.pcb_save.sv_xmm.sv_env.en_sw & (mask) : \
- (proc)->p_addr->u_pcb.pcb_save.sv_87.sv_env.en_sw & (mask))
#define GET_FPU_EXSW_PTR(pcb) \
(cpu_fxsr ? \
&(pcb)->pcb_save.sv_xmm.sv_ex_sw : \
@@ -145,8 +141,6 @@ void stop_emulating __P((void));
(proc->p_addr->u_pcb.pcb_save.sv_87.sv_env.en_cw)
#define GET_FPU_SW(proc) \
(proc->p_addr->u_pcb.pcb_save.sv_87.sv_env.en_sw)
-#define MASK_FPU_SW(proc, mask) \
- ((proc)->p_addr->u_pcb.pcb_save.sv_87.sv_env.en_sw & (mask))
#define GET_FPU_EXSW_PTR(pcb) \
(&(pcb)->pcb_save.sv_87.sv_ex_sw)
#endif /* CPU_ENABLE_SSE */
@@ -833,7 +827,7 @@ npxtrap()
exstat = GET_FPU_EXSW_PTR(&curproc->p_addr->u_pcb);
*exstat = status;
if (PCPU_GET(npxproc) != curproc)
- MASK_FPU_SW(curproc, ~0x80bf);
+ GET_FPU_SW(curproc) &= ~0x80bf;
else
fnclex();
critical_exit(savecrit);
OpenPOWER on IntegriCloud