SecurityPkg:Tcg2Smm: Fix compile issue

Update Tcg2Smm _PRS patching logic to fix compile issue

Cc: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Zhang, Chao B 2018-02-06 14:55:21 +08:00
parent c4e75574a0
commit 449083a3f8
1 changed files with 4 additions and 3 deletions

View File

@ -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;