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:
czhang46 2012-08-23 03:17:33 +00:00
parent a66e0c7da7
commit 15f2d73901
1 changed files with 14 additions and 7 deletions

View File

@ -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 = {