Add FFXSR defines to compat headers
PATCH 1/1 Add FFXSR defines to compat headers
The FFXSR feature depends on some defines that were only recently included, so let's expose them manually when building an external module.
Signed-off-by Alexander Graf <[email protected]>
--- kernel/x86/external-module-compat.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
kernel/x86/external-module-compat.h +9 -0
@@ -35,12 +35,21 @@#define EFER_SVME (1<<_EFER_SVME)#endif +#ifndef _EFER_FFXSR +#define _EFER_FFXSR 14 +#define EFER_FFXSR (1<<_EFER_FFXSR) +#endif +#include <asm/cpufeature.h> #ifndef X86_FEATURE_SVM #define X86_FEATURE_SVM (6*32+ 2)/* Secure virtual machine */ #endif +#ifndef X86_FEATURE_FXSR_OPT +#define X86_FEATURE_FXSR_OPT (1*32+25)/* FXSAVE/FXRSTOR optimizations */ +#endif +#include <linux/smp.h> #ifndef X86_CR0_PE
Signature · 1 line
1.6.0.2