"call cr4_pv32_restore", X86_FEATURE_XEN_SMEP, \
"call cr4_pv32_restore", X86_FEATURE_XEN_SMAP
+#include <asm/spec_ctrl_asm.h>
+
#endif
#ifdef CONFIG_PERF_COUNTERS
4: .p2align 2 ; \
.popsection
-#include <asm/spec_ctrl_asm.h>
-
#endif /* __X86_ASM_DEFNS_H__ */
#ifndef __X86_SPEC_CTRL_H__
#define __X86_SPEC_CTRL_H__
+/* Encoding of cpuinfo.spec_ctrl_flags */
+#define SCF_use_shadow (1 << 0)
+#define SCF_ist_wrmsr (1 << 1)
+#define SCF_ist_rsb (1 << 2)
+
+#ifndef __ASSEMBLY__
+
#include <asm/alternative.h>
#include <asm/current.h>
#include <asm/msr-index.h>
:: "a" (val), "c" (MSR_SPEC_CTRL), "d" (0) : "memory" );
}
+#endif /* __ASSEMBLY__ */
#endif /* !__X86_SPEC_CTRL_H__ */
/*
#ifndef __X86_SPEC_CTRL_ASM_H__
#define __X86_SPEC_CTRL_ASM_H__
-/* Encoding of cpuinfo.spec_ctrl_flags */
-#define SCF_use_shadow (1 << 0)
-#define SCF_ist_wrmsr (1 << 1)
-#define SCF_ist_rsb (1 << 2)
-
#ifdef __ASSEMBLY__
#include <asm/msr-index.h>
+#include <asm/spec_ctrl.h>
/*
* Saving and restoring MSR_SPEC_CTRL state is a little tricky.