aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/fpu/types.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-05-05 15:56:33 +0200
committerIngo Molnar <mingo@kernel.org>2015-05-19 15:48:12 +0200
commitb1b64dc3558b7bde2917f9fc4f573f6a4787a95c (patch)
treea1c74ea7462d27adb8cb744d1a74162b9342d587 /arch/x86/include/asm/fpu/types.h
parentx86/fpu: Add CONFIG_X86_DEBUG_FPU=y FPU debugging code (diff)
downloadlinux-dev-b1b64dc3558b7bde2917f9fc4f573f6a4787a95c.tar.xz
linux-dev-b1b64dc3558b7bde2917f9fc4f573f6a4787a95c.zip
x86/fpu: Reorganize fpu/internal.h
fpu/internal.h has grown organically, with not much high level structure, which hurts its readability. Organize the various definitions into 5 sections: - high level FPU state functions - FPU/CPU feature flag helpers - fpstate handling functions - FPU context switching helpers - misc helper functions Other related changes: - Move MXCSR_DEFAULT to fpu/types.h. - drop the unused X87_FSW_ES define No change in functionality. Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/fpu/types.h')
-rw-r--r--arch/x86/include/asm/fpu/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fpu/types.h b/arch/x86/include/asm/fpu/types.h
index 02241c2a10e9..0637826292de 100644
--- a/arch/x86/include/asm/fpu/types.h
+++ b/arch/x86/include/asm/fpu/types.h
@@ -65,6 +65,9 @@ struct fxregs_state {
} __attribute__((aligned(16)));
+/* Default value for fxregs_state.mxcsr: */
+#define MXCSR_DEFAULT 0x1f80
+
/*
* Software based FPU emulation state. This is arbitrary really,
* it matches the x87 format to make it easier to understand: