|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 06/14] x86: Add memory type constants
These are not currently used, so there is no functional change. Future
patches will use these constants.
Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
---
xen/arch/x86/include/asm/x86-defns.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/xen/arch/x86/include/asm/x86-defns.h
b/xen/arch/x86/include/asm/x86-defns.h
index
28628807cb9897cf6fa8e266f71f5f220813984d..d7c6c986a556e62e1e7a57e9e3ef50e89de3f0ab
100644
--- a/xen/arch/x86/include/asm/x86-defns.h
+++ b/xen/arch/x86/include/asm/x86-defns.h
@@ -153,4 +153,17 @@
(1u << X86_EXC_AC) | (1u << X86_EXC_CP) | \
(1u << X86_EXC_VC) | (1u << X86_EXC_SX))
+/* Memory types */
+#define X86_MT_UC _AC(0x00, ULL) /* uncachable */
+#define X86_MT_WC _AC(0x01, ULL) /* write-combined */
+#define X86_MT_WT _AC(0x04, ULL) /* write-through */
+#define X86_MT_WP _AC(0x05, ULL) /* write-protect */
+#define X86_MT_WB _AC(0x06, ULL) /* write-back */
+#define X86_MT_UCM _AC(0x07, ULL) /* UC- */
+#define X86_NUM_MT _AC(0x08, ULL)
+
+/* Reserved memory types (cannot be used) */
+#define X86_MT_RESERVED_1 _AC(0x02, ULL)
+#define X86_MT_RESERVED_2 _AC(0x03, ULL)
+
#endif /* __XEN_X86_DEFNS_H__ */
--
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |