]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Fix Memory Attributes table type issue
authorJiewen Yao <jiewen.yao@intel.com>
Tue, 23 Feb 2016 04:43:57 +0000 (12:43 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 25 Feb 2016 03:23:43 +0000 (11:23 +0800)
commit82f0f411c7912de105d1484fd294bde8aacb6c1e
tree00d5c3c6cef23160c6f786397beffe2ca9bb2fdf
parent97033ebfa3cb10562c434a8927e2cba9e3940ec7
MdeModulePkg: Fix Memory Attributes table type issue

According to the spec, each entry in the Memory
Attributes table shall have the same type as
the region it was carved out of in the UEFI memory map.
The current attribute uses RTData for PE Data, but
it should be RTCode.

This patch fixed the issue. It is validated with or
without PropertiesTable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c
MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c