MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow
v2 changelog: Check CurrentPeimHandle to check the matched PeimHandle. Add check point to ShadowPeiCore based on PCD. v1 changelog: PeiCore LoadImage always shadow itself and PEIM on normal boot after the physical memory is installed. On the emulator platform, the shadow may be not necessary. To support such usage, new PCD PcdShadowPeimOnBoot is introduced to specify whether loads PEIM in memory by default. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18125 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -889,6 +889,13 @@
|
||||
# @Prompt Shadow Peim On S3 Boot.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnS3Boot|FALSE|BOOLEAN|0x30001028
|
||||
|
||||
## Indicates if to shadow PEIM and PeiCore after memory is ready.<BR><BR>
|
||||
# This PCD is used on other boot path except for S3 boot.
|
||||
# TRUE - Shadow PEIM and PeiCore after memory is ready.<BR>
|
||||
# FALSE - Not shadow PEIM after memory is ready.<BR>
|
||||
# @Prompt Shadow Peim and PeiCore on boot
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot|TRUE|BOOLEAN|0x30001029
|
||||
|
||||
## The mask is used to control memory profile behavior.<BR><BR>
|
||||
# BIT0 - Enable UEFI memory profile.<BR>
|
||||
# BIT1 - Enable SMRAM profile.<BR>
|
||||
|
Reference in New Issue
Block a user