diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2016-11-30 23:08:51 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2016-12-07 13:13:50 +0800 |
commit | 5f4d3e179435f539395748bcd5187e3c395b0bf9 (patch) | |
tree | 4da0d15a1a0c2cbdf34d339b4719bfdd3ed1cf8d /MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | |
parent | 432f1d83f77acf92d52ef18d2cee6dbf7c5b9b86 (diff) | |
download | edk2-platforms-5f4d3e179435f539395748bcd5187e3c395b0bf9.tar.xz |
MdeModulePkg/PiSmmCore: AllocatePool should use MemoryType.
PiSmmCore supports page level protection based upon the Memory Type
(EfiRuntimeServicesCode/EfiRuntimeServicesData) and PE image.
However, the Memory Type information is ignored in AllocatePool().
If a caller calls AllocatePool with EfiRuntimeServicesCode,
the final memory is still allocated as EfiRuntimeServicesData.
This patch supports AllocatePool with EfiRuntimeServicesCode.
Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c')
0 files changed, 0 insertions, 0 deletions