Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by : Dong, Guo <guo.dong@intel.com>
Reviewed-by : Mike, Wu <mike.wu@intel.com>
Reviewed-by : Erik C Bjorge <erick.c.bjorge@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13675
6f19259b-4bc3-4df7-8a09-
765794883524
## The PCD is used to control whether to hide the TPM.\r
gEfiSecurityPkgTokenSpaceGuid.PcdHideTpm|FALSE|BOOLEAN|0x00010002\r
\r
- ## The PCD is used to specify whether or not MOR (MemoryOverwriteControl) feature is enabled.\r
- gEfiSecurityPkgTokenSpaceGuid.PcdMorEnable|FALSE|BOOLEAN|0x00010000\r
-\r
[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
## This PCD indicates the presence or absence of the platform operator.\r
gEfiSecurityPkgTokenSpaceGuid.PcdTpmPhysicalPresence|TRUE|BOOLEAN|0x00010001\r
\r
subtitle text = STRING_TOKEN(STR_NULL);\r
\r
- checkbox varid = TCG_CONFIGURATION.MorState,\r
- questionid = KEY_TPM_MOR_ENABLE,\r
- prompt = STRING_TOKEN(STR_MOR_PROMPT),\r
- help = STRING_TOKEN(STR_MOR_HELP),\r
- endcheckbox; \r
endif;\r
\r
endform;\r
gEfiSecurityPkgTokenSpaceGuid.PcdHideTpmSupport\r
\r
[Pcd]\r
- gEfiSecurityPkgTokenSpaceGuid.PcdMorEnable\r
gEfiSecurityPkgTokenSpaceGuid.PcdHideTpm\r
\r
[Depex]\r
// \r
ZeroMem (&Configuration, sizeof (TCG_CONFIGURATION));\r
\r
- Configuration.MorState = PcdGetBool (PcdMorEnable);\r
Configuration.TpmOperation = PHYSICAL_PRESENCE_ENABLE;\r
Configuration.HideTpm = (BOOLEAN) (PcdGetBool (PcdHideTpmSupport) && PcdGetBool (PcdHideTpm));\r
//\r
return Status;\r
}\r
\r
- PcdSetBool (PcdMorEnable, TcgConfiguration.MorState);\r
PcdSetBool (PcdHideTpm, TcgConfiguration.HideTpm);\r
\r
return EFI_SUCCESS;\r
typedef struct {\r
BOOLEAN HideTpm;\r
BOOLEAN OriginalHideTpm;\r
- BOOLEAN MorState;\r
UINT8 TpmOperation;\r
BOOLEAN TpmEnable;\r
BOOLEAN TpmActivate;\r