X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPei%2FPpi%2FPpi.c;h=feae0fbb9fb47cc46cc48dffe2fcaca1fc313ee5;hp=1e400225fb385a8482a7a18f6d48f410a45e5356;hb=eaf539d00fbff0a116b72347338c4439bc8afb05;hpb=ff1fcef8426337298b156f73abbbe57d98408627 diff --git a/MdeModulePkg/Core/Pei/Ppi/Ppi.c b/MdeModulePkg/Core/Pei/Ppi/Ppi.c index 1e400225fb..feae0fbb9f 100644 --- a/MdeModulePkg/Core/Pei/Ppi/Ppi.c +++ b/MdeModulePkg/Core/Pei/Ppi/Ppi.c @@ -46,9 +46,9 @@ Returns: --*/ { if (OldCoreData == NULL) { - PrivateData->PpiData.NotifyListEnd = MAX_PPI_DESCRIPTORS-1; - PrivateData->PpiData.DispatchListEnd = MAX_PPI_DESCRIPTORS-1; - PrivateData->PpiData.LastDispatchedNotify = MAX_PPI_DESCRIPTORS-1; + PrivateData->PpiData.NotifyListEnd = FixedPcdGet32 (PcdPeiCoreMaxPpiSupported)-1; + PrivateData->PpiData.DispatchListEnd = FixedPcdGet32 (PcdPeiCoreMaxPpiSupported)-1; + PrivateData->PpiData.LastDispatchedNotify = FixedPcdGet32 (PcdPeiCoreMaxPpiSupported)-1; } return; @@ -87,7 +87,7 @@ Returns: Fixup = (UINTN)NewHandOffHob - OldCheckingBottom; - for (Index = 0; Index < MAX_PPI_DESCRIPTORS; Index++) { + for (Index = 0; Index < FixedPcdGet32 (PcdPeiCoreMaxPpiSupported); Index++) { if (Index < PrivateData->PpiData.PpiListEnd || Index > PrivateData->PpiData.NotifyListEnd) { PpiPointer = &PrivateData->PpiData.PpiListPtrs[Index]; @@ -564,7 +564,7 @@ Returns: EFI_PEI_PPI_DESCRIPTOR_NOTIFY_DISPATCH, PrivateData->PpiData.LastDispatchedInstall, PrivateData->PpiData.PpiListEnd, - MAX_PPI_DESCRIPTORS-1, + FixedPcdGet32 (PcdPeiCoreMaxPpiSupported)-1, PrivateData->PpiData.DispatchListEnd ); PrivateData->PpiData.LastDispatchedInstall = TempValue;