]> git.proxmox.com Git - mirror_edk2.git/commit - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c
IntelFrameworkModulePkg/Csm: Set CSM memory executable
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 6 Aug 2018 09:56:37 +0000 (17:56 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 16 Aug 2018 03:38:29 +0000 (11:38 +0800)
commitcd25509b1f85a71b243828955a2cbd655a836eff
tree4b40885d14787df355c684a222cc6c6973a422cd
parent0e967dff0642cedaef7bc63e5743f4b081a1db9a
IntelFrameworkModulePkg/Csm: Set CSM memory executable

Commit b22a62be5cdc8fd19d87ec1ecfa5b28fb9be50ad
* IntelFrameworkModule/LegacyBios:Use reserved memory for legacy data
allocates reserved memory for holding legacy code/data.

But with PcdDxeNxMemoryProtectionPolicy set to certain value to
forbid execution when code is in certain type of memory, it's
possible that a platform forbids execution when code is in reserved
memory. The patch calls GCD service to allow such case otherwise
CPU exception may occur.

Code execution in BSCode area should be enabled by platform by
default.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jian Wang <jian.j.wang@intel.com>
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c