mirror of https://github.com/acidanthera/audk.git
Add TcgDxeHashLogExtendEvent EventLogLastEntry parameter update logic
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by : Dong Guo <guo.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13669 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a66e0c7da7
commit
15f2d73901
|
@ -505,6 +505,7 @@ TcgDxeHashLogExtendEvent (
|
|||
)
|
||||
{
|
||||
TCG_DXE_DATA *TcgData;
|
||||
EFI_STATUS Status;
|
||||
|
||||
if (TCGLogData == NULL || EventLogLastEntry == NULL){
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
@ -520,13 +521,19 @@ TcgDxeHashLogExtendEvent (
|
|||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
return TcgDxeHashLogExtendEventI (
|
||||
Status = TcgDxeHashLogExtendEventI (
|
||||
TcgData,
|
||||
(UINT8 *) (UINTN) HashData,
|
||||
HashDataLen,
|
||||
(TCG_PCR_EVENT_HDR*)TCGLogData,
|
||||
TCGLogData->Event
|
||||
);
|
||||
|
||||
if (!EFI_ERROR(Status)){
|
||||
*EventLogLastEntry = (EFI_PHYSICAL_ADDRESS)(UINTN) TcgData->LastEvent;
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
TCG_DXE_DATA mTcgDxeData = {
|
||||
|
|
Loading…
Reference in New Issue