aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/math-emu/fpu_system.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-10-13 16:55:40 +0200
committerBorislav Petkov <bp@suse.de>2021-10-20 23:57:54 +0200
commit63d6bdf36ce1541e656966604c12ac4d9fc5d1f0 (patch)
tree76a704978dae1200984917fcd781539125a92f8b /arch/x86/math-emu/fpu_system.h
parentx86/fpu/core: Convert to fpstate (diff)
downloadlinux-dev-63d6bdf36ce1541e656966604c12ac4d9fc5d1f0.tar.xz
linux-dev-63d6bdf36ce1541e656966604c12ac4d9fc5d1f0.zip
x86/math-emu: Convert to fpstate
Convert math emulation code to the new register storage mechanism in preparation for dynamically sized buffers. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211013145322.711347464@linutronix.de
Diffstat (limited to 'arch/x86/math-emu/fpu_system.h')
-rw-r--r--arch/x86/math-emu/fpu_system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/math-emu/fpu_system.h b/arch/x86/math-emu/fpu_system.h
index 9b41391867dc..eec3e4805c75 100644
--- a/arch/x86/math-emu/fpu_system.h
+++ b/arch/x86/math-emu/fpu_system.h
@@ -73,7 +73,7 @@ static inline bool seg_writable(struct desc_struct *d)
return (d->type & SEG_TYPE_EXECUTE_MASK) == SEG_TYPE_WRITABLE;
}
-#define I387 (&current->thread.fpu.state)
+#define I387 (&current->thread.fpu.fpstate->regs)
#define FPU_info (I387->soft.info)
#define FPU_CS (*(unsigned short *) &(FPU_info->regs->cs))