diff options
author | Star Zeng <star.zeng@intel.com> | 2016-12-09 15:53:22 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-01-06 18:06:37 +0800 |
commit | dd6d0a520eec0fd3fc455ac7345ac0c06095a511 (patch) | |
tree | 1338eda1e92ade802ac596c09bdbaceb9cedd155 /SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c | |
parent | 9ce9bf5339f8a5a9acfd77d9fbc70bb92a55dd6a (diff) | |
download | edk2-dd6d0a520eec0fd3fc455ac7345ac0c06095a511.zip edk2-dd6d0a520eec0fd3fc455ac7345ac0c06095a511.tar.gz edk2-dd6d0a520eec0fd3fc455ac7345ac0c06095a511.tar.bz2 |
SecurityPkg Tcg2ConfigDxe: Add setup option to configure PPI version
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=288
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer was
introduced to configure physical presence interface version. but test
or user needs to build different images to support different versions
separately as the PCD does not support Dynamic types.
This patch is to extend the PCD to support Dynamic types and add a
setup option in Tcg2ConfigDxe driver to configure the physical
presence interface version, the PCD needs to be DynamicHii type and
maps to the setup option.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c')
-rw-r--r-- | SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c index 3ca6958..7557e29 100644 --- a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c +++ b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c @@ -439,6 +439,12 @@ PublishAcpiTable ( Status = UpdatePPVersion(Table, (CHAR8 *)PcdGetPtr(PcdTcgPhysicalPresenceInterfaceVer));
ASSERT_EFI_ERROR (Status);
+ DEBUG ((
+ DEBUG_INFO,
+ "Current physical presence interface version - %a\n",
+ (CHAR8 *) PcdGetPtr(PcdTcgPhysicalPresenceInterfaceVer)
+ ));
+
//
// Update TPM2 HID before measuring it to PCR
//
|