[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140702162930.6209A1AA@viggo.jf.intel.com>
Date: Wed, 02 Jul 2014 09:29:30 -0700
From: Dave Hansen <dave@...1.net>
To: bp@...en8.de
Cc: x86@...nel.org, hpa@...or.com, qiaowei.ren@...el.com,
linux-kernel@...r.kernel.org, Dave Hansen <dave@...1.net>
Subject: [PATCH 4/4] x86: add MPX to disaabled features
From: Dave Hansen <dave.hansen@...ux.intel.com>
This will go in to the MPX patch set, but I'm posting it here so
folk can see how it will work since it was the original
motivation for this work.
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
---
b/arch/x86/include/asm/disabled-features.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff -puN arch/x86/include/asm/disabled-features.h~x86-diabled-features-mpx arch/x86/include/asm/disabled-features.h
--- a/arch/x86/include/asm/disabled-features.h~x86-diabled-features-mpx 2014-07-02 09:16:34.368863016 -0700
+++ b/arch/x86/include/asm/disabled-features.h 2014-07-02 09:16:34.371863152 -0700
@@ -10,6 +10,12 @@
* cpu_feature_enabled().
*/
+#ifdef CONFIG_X86_INTEL_MPX
+# define DISABLE_MPX 0
+#else
+# define DISABLE_MPX (1<<(X86_FEATURE_MPX & 31))
+#endif
+
#ifdef CONFIG_X86_64
# define DISABLE_VME (1<<(X86_FEATURE_VME & 31))
# define DISABLE_K6_MTRR (1<<(X86_FEATURE_K6_MTRR & 31))
@@ -34,6 +40,6 @@
#define DISABLED_MASK6 0
#define DISABLED_MASK7 0
#define DISABLED_MASK8 0
-#define DISABLED_MASK9 0
+#define DISABLED_MASK9 (DISABLE_MPX)
#endif /* _ASM_X86_DISABLED_FEATURES_H */
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists