diff options
author | Star Zeng <star.zeng@intel.com> | 2015-05-11 03:32:48 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-05-11 03:32:48 +0000 |
commit | ecde59b2ddef1c0f262d69d533b24f2c2325fd69 (patch) | |
tree | a8a444576b8f15de5bf0b340e60c22001339c75d /MdePkg/Include/Uefi | |
parent | 34363594e3373601d41a5a5fcefefe64283a88f9 (diff) | |
download | edk2-platforms-ecde59b2ddef1c0f262d69d533b24f2c2325fd69.tar.xz |
MdePkg: Add RO memory and resource HOB attribute definitions.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17396 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Uefi')
-rw-r--r-- | MdePkg/Include/Uefi/UefiSpec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h index 1c401e8e85..243f33078a 100644 --- a/MdePkg/Include/Uefi/UefiSpec.h +++ b/MdePkg/Include/Uefi/UefiSpec.h @@ -71,9 +71,13 @@ typedef enum { //
// Physical memory protection attributes
//
+// Note: UEFI spec 2.5 and following: use EFI_MEMORY_RO as write-protected physical memory
+// protection attribute. Also, EFI_MEMORY_WP means cacheability attribute.
+//
#define EFI_MEMORY_WP 0x0000000000001000ULL
#define EFI_MEMORY_RP 0x0000000000002000ULL
#define EFI_MEMORY_XP 0x0000000000004000ULL
+#define EFI_MEMORY_RO 0x0000000000020000ULL
//
// Physical memory persistence attribute.
// The memory region supports byte-addressable non-volatility.
|