]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Mem/Page.c
MdeModulePkg: Add Memory Capabilities for MMIO and Reserved Range
authorLiming Gao <liming.gao@intel.com>
Thu, 25 Jun 2015 03:29:11 +0000 (03:29 +0000)
committerlgao4 <lgao4@Edk2>
Thu, 25 Jun 2015 03:29:11 +0000 (03:29 +0000)
commitff0c6d6617833573e9de0eec7287a90247365b98
treec7613f06d99ce1f9415b8306fef60ff0f9306282
parenta86c73cddaaa88bfc65955be21b1d5102e20ee47
MdeModulePkg: Add Memory Capabilities for MMIO and Reserved Range

UEFI2.5 spec, GetMemoryMap(), says:
Attribute: Attributes of the memory region that describe the bit mask
of capabilities for that memory region, and not necessarily the current
settings for that memory region.
But, GetMemoryMap() implementation doesn't append memory capabilities
for MMIO and Reserved memory range. This will break UEFI2.5 Properties
Table feature, because Properties Table need return EFI_MEMORY_RO or
EFI_MEMORY_XP capabilities for OS.

This patch appends memory capabilities for those memory range.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17703 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Mem/Page.c