X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFspPkg%2FFspSecCore%2FIa32%2FFspApiEntry.asm;h=d0e56b2360b9e21013e0790511b27e3021ca8070;hp=a0c9b1ed7351a5911310283cc9e0560472a733ba;hb=f0abe42fd77c07ea06b24efe5bf861f5c49c8559;hpb=e7401ee1af263ff946a57f047124241fa4f01cd5 diff --git a/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm b/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm index a0c9b1ed73..d0e56b2360 100644 --- a/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm +++ b/IntelFspPkg/FspSecCore/Ia32/FspApiEntry.asm @@ -143,8 +143,8 @@ check_main_header: mov ecx, MSR_IA32_PLATFORM_ID rdmsr mov ecx, edx - shr ecx, 50-32 - and ecx, 7h + shr ecx, 50-32 ; shift (50d-32d=18d=0x12) bits + and ecx, 7h ; platform id at bit[52..50] mov edx, 1 shl edx, cl @@ -569,7 +569,7 @@ FspApiCommon PROC C PUBLIC ; ; Pass BFV into the PEI Core ; It uses relative address to calucate the actual boot FV base - ; For FSP impleantion with single FV, PcdFlashFvRecoveryBase and + ; For FSP implementation with single FV, PcdFspBootFirmwareVolumeBase and ; PcdFspAreaBaseAddress are the same. For FSP with mulitple FVs, ; they are different. The code below can handle both cases. ;