mirror of https://github.com/acidanthera/audk.git
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:
parent
c4e75574a0
commit
449083a3f8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue