summaryrefslogtreecommitdiffstats
path: root/sys/gnu/i386/fpemul/fpu_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/i386/fpemul/fpu_system.h')
-rw-r--r--sys/gnu/i386/fpemul/fpu_system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/i386/fpemul/fpu_system.h b/sys/gnu/i386/fpemul/fpu_system.h
index a77f0c2..f4927c8 100644
--- a/sys/gnu/i386/fpemul/fpu_system.h
+++ b/sys/gnu/i386/fpemul/fpu_system.h
@@ -69,7 +69,7 @@
#include <linux/kernel.h>
*/
-#define I387 (*(union i387_union *)&(((struct pcb *)curproc->p_addr)->pcb_save.sv_87))
+#define I387 (*(union i387_union *)&(curthread->td_pcb->pcb_save.sv_87))
#define FPU_info (I387.soft.frame)
#define FPU_CS (*(unsigned short *) &(FPU_info->tf_cs))
OpenPOWER on IntegriCloud