X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FLibrary%2FTpm2DeviceLibDTpm%2FTpm2InstanceLibDTpm.c;h=a50d266b8e8a8bea88a4b27e7a8dc82a3fb937df;hp=6a6a0423730c69f0b7e4f0fe53151c929f60e3b7;hb=79e748cf29f6d9a92f28d44d20eef8d6c24c4092;hpb=ac6f9d7c127523a9509ede36e053adff8acfdbe1 diff --git a/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c b/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c index 6a6a042373..a50d266b8e 100644 --- a/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c +++ b/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c @@ -3,7 +3,7 @@ It can be registered to Tpm2 Device router, to be active TPM2 engine, based on platform setting. -Copyright (c) 2013, Intel Corporation. All rights reserved.
+Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -21,6 +21,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include +/** + Dump PTP register information. + + @param[in] Register Pointer to PTP register. +**/ +VOID +DumpPtpInfo ( + IN VOID *Register + ); + /** This service enables the sending of commands to the TPM2. @@ -79,6 +89,9 @@ Tpm2InstanceLibDTpmConstructor ( // // Unsupported means platform policy does not need this instance enabled. // + if (Status == EFI_SUCCESS) { + DumpPtpInfo ((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress)); + } return EFI_SUCCESS; } return Status;