audk/MdeModulePkg/Core/Pei
Ard Biesheuvel 6e7ec25aaa MdeModulePkg/PeiCore: avoid EFI_IMAGE_MACHINE_TYPE_SUPPORTED to check arch
The EFI_IMAGE_MACHINE_TYPE_SUPPORTED() macro is abused in the PeiCore
code to decide whether the system we are compiling for can deal with
executable code being copied elsewhere and executed from there.

As stated in the comment, this is fundamentally a property of the compiler
target, and so this should be made dependent on MDE_CPU_xxx preprocessor
defines, and not on whether or not the runtime target can deal with
PE/COFF images of a certain machine type.

On X86/IA32, this mostly boils down to the same thing, but not on other
architectures, so let's clean this up.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-03-29 11:54:07 +01:00
..
BootMode Update the copyright notice format 2010-04-24 09:49:11 +00:00
CpuIo Update the copyright notice format 2010-04-24 09:49:11 +00:00
Dependency Refine code to make it more safely. 2014-06-26 03:24:25 +00:00
Dispatcher MdeModulePkg PeiCore: Reset PeimNeedingDispatch when its security violation 2017-02-10 11:17:37 +08:00
FwVol MdeModulePkg PeiCore: Don't cache GUIDED section with AUTH_NOT_TESTED 2017-02-10 11:17:41 +08:00
Hob Update HobLib and Hob Service to avoid data over flow. 2012-07-17 01:51:26 +00:00
Image MdeModulePkg/PeiCore: avoid EFI_IMAGE_MACHINE_TYPE_SUPPORTED to check arch 2017-03-29 11:54:07 +01:00
Memory MdeModulePkg/PeiCore: honour minimal runtime allocation granularity 2017-03-06 11:29:28 +01:00
PciCfg2 Update the copyright notice format 2010-04-24 09:49:11 +00:00
PeiMain MdeModulePkg PeiCore: Make SetPeiServicesTablePointer() early in EntryPoint 2016-11-29 11:31:51 +08:00
Ppi MdeModulePkg/PeiCore: Fix ConverSinglePpiPointer () typo. 2016-08-15 15:10:41 +08:00
Reset MdeModulePkg: Add Reset2 ppi support in PEI CORE. 2015-05-11 02:06:51 +00:00
Security Update PeiCore to follow PI spec to retrieve GUIDED section data when ExtractionPpi is not found. 2014-08-18 05:43:06 +00:00
StatusCode Update the copyright notice format 2010-04-24 09:49:11 +00:00
PeiCore.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PeiCoreExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PeiMain.h MdeModulePkg/Core: Fix typos in comments 2016-10-27 09:11:17 +08:00
PeiMain.inf MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow 2015-08-03 03:18:37 +00:00