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> (cherry picked from commit449083a3f8) (cherry picked from commitabb0427276)
This commit is contained in:
		@@ -539,10 +539,11 @@ UpdatePossibleResource (
 | 
				
			|||||||
  *(DataPtr + 1) = 0;
 | 
					  *(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 += 2;
 | 
				
			||||||
    *DataPtr = AML_NOOP_OP;
 | 
					  if (DataPtr < DataEndPtr) {
 | 
				
			||||||
 | 
					    SetMem(DataPtr, (UINTN)(DataEndPtr - DataPtr), AML_NOOP_OP);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return EFI_SUCCESS;
 | 
					  return EFI_SUCCESS;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user