Revision: 17396
          http://sourceforge.net/p/edk2/code/17396
Author:   lzeng14
Date:     2015-05-11 03:32:48 +0000 (Mon, 11 May 2015)
Log Message:
-----------
MdePkg: Add RO memory and resource HOB attribute definitions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdePkg/Include/Pi/PiHob.h
    trunk/edk2/MdePkg/Include/Uefi/UefiSpec.h

Modified: trunk/edk2/MdePkg/Include/Pi/PiHob.h
===================================================================
--- trunk/edk2/MdePkg/Include/Pi/PiHob.h        2015-05-11 03:12:51 UTC (rev 
17395)
+++ trunk/edk2/MdePkg/Include/Pi/PiHob.h        2015-05-11 03:32:48 UTC (rev 
17396)
@@ -255,6 +255,13 @@
 #define EFI_RESOURCE_ATTRIBUTE_INITIALIZED              0x00000002
 #define EFI_RESOURCE_ATTRIBUTE_TESTED                   0x00000004
 #define EFI_RESOURCE_ATTRIBUTE_READ_PROTECTED           0x00000080
+//
+// This is typically used as memory cacheability attribute today.
+// NOTE: Since PI spec 1.4, please use 
EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTED
+// as Physical write protected attribute, and 
EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTED
+// means Memory cacheability attribute: The memory supports being programmed 
with
+// a writeprotected cacheable attribute.
+//
 #define EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTED          0x00000100
 #define EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTED      0x00000200
 #define EFI_RESOURCE_ATTRIBUTE_PERSISTENT               0x00800000
@@ -274,10 +281,20 @@
 #define EFI_RESOURCE_ATTRIBUTE_64_BIT_IO                0x00010000
 #define EFI_RESOURCE_ATTRIBUTE_UNCACHED_EXPORTED        0x00020000
 #define EFI_RESOURCE_ATTRIBUTE_READ_PROTECTABLE         0x00100000
+//
+// This is typically used as memory cacheability attribute today.
+// NOTE: Since PI spec 1.4, please use 
EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTABLE
+// as Memory capability attribute: The memory supports being protected from 
processor
+// writes, and EFI_RESOURCE_ATTRIBUTE_WRITE_PROTEC TABLE means Memory 
cacheability attribute:
+// The memory supports being programmed with a writeprotected cacheable 
attribute.
+//
 #define EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTABLE        0x00200000
 #define EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTABLE    0x00400000
 #define EFI_RESOURCE_ATTRIBUTE_PERSISTABLE              0x01000000
 
+#define EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTED      0x00040000
+#define EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTABLE    0x00800000
+
 ///
 /// Describes the resource properties of all fixed,
 /// nonrelocatable resource ranges found on the processor

Modified: trunk/edk2/MdePkg/Include/Uefi/UefiSpec.h
===================================================================
--- trunk/edk2/MdePkg/Include/Uefi/UefiSpec.h   2015-05-11 03:12:51 UTC (rev 
17395)
+++ trunk/edk2/MdePkg/Include/Uefi/UefiSpec.h   2015-05-11 03:32:48 UTC (rev 
17396)
@@ -71,9 +71,13 @@
 //
 // 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.


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to