Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
SecurityPkg:Tcg2Smm: Fix compile issue
Browse files Browse the repository at this point in the history
Update Tcg2Smm _PRS patching logic to fix compile issue

Cc: Liming Gao <[email protected]>
Cc: Dandan Bi <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
zhangchaointel committed Feb 7, 2018
1 parent c4e7557 commit 449083a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,11 @@ UpdatePossibleResource (
*(DataPtr + 1) = 0;

//
// 5. Jump over whole ResourceTemplate. Stuff rest bytes to NOOP
// 5. Jump over new ResourceTemplate. Stuff rest bytes to NOOP
//
for (DataPtr += 2; DataPtr < DataEndPtr; DataPtr++) {
*DataPtr = AML_NOOP_OP;
DataPtr += 2;
if (DataPtr < DataEndPtr) {
SetMem(DataPtr, (UINTN)(DataEndPtr - DataPtr), AML_NOOP_OP);
}

return EFI_SUCCESS;
Expand Down

0 comments on commit 449083a

Please sign in to comment.