VHE: MM: Add flags to support EL0/User mappings and non global mappings
Added flags and support for enabling EL0 mappings and non-global
mappings when VHE is enabled. This will be used to map EL0 partitions.
Change-Id: Ib6b142d36ecde63c9da46547a7f958deabf8fd7a
Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
diff --git a/inc/hf/mm.h b/inc/hf/mm.h
index b8ed221..901a799 100644
--- a/inc/hf/mm.h
+++ b/inc/hf/mm.h
@@ -62,6 +62,12 @@
#define MM_MODE_UNOWNED UINT32_C(0x0020)
#define MM_MODE_SHARED UINT32_C(0x0040)
+/* Specifies if a mapping will be a user mapping(EL0). */
+#define MM_MODE_USER UINT32_C(0x0200)
+
+/* Map page as non-global. */
+#define MM_MODE_NG UINT32_C(0x0100) /* non-global */
+
/* The mask for a mode that is considered unmapped. */
#define MM_MODE_UNMAPPED_MASK (MM_MODE_INVALID | MM_MODE_UNOWNED)