diff --git a/src/soc/amd/common/block/pi/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c index ff52fbd8c8..ca576bad99 100644 --- a/src/soc/amd/common/block/pi/agesawrapper.c +++ b/src/soc/amd/common/block/pi/agesawrapper.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -261,9 +262,8 @@ static AGESA_STATUS amd_init_late(AMD_LATE_PARAMS *LateParams) const struct device *dev = pcidev_path_on_root(IOMMU_DEVFN); if (dev && dev->enabled) { - LateParams->GnbLateConfiguration.GnbIoapicId = CONFIG_MAX_CPUS - + 1; - LateParams->GnbLateConfiguration.FchIoapicId = CONFIG_MAX_CPUS; + LateParams->GnbLateConfiguration.GnbIoapicId = GNB_IOAPIC_ID; + LateParams->GnbLateConfiguration.FchIoapicId = FCH_IOAPIC_ID; } timestamp_add_now(TS_AGESA_INIT_LATE_START);