UINTN GicRevision;\r
EFI_STATUS Status;\r
UINT64 DistBase, CpuBase, RedistBase;\r
+ RETURN_STATUS PcdStatus;\r
\r
Status = gBS->LocateProtocol (&gFdtClientProtocolGuid, NULL,\r
(VOID **)&FdtClient);\r
RedistBase = SwapBytes64 (Reg[2]);\r
ASSERT (RedistBase < MAX_UINTN);\r
\r
- PcdSet64 (PcdGicDistributorBase, DistBase);\r
- PcdSet64 (PcdGicRedistributorsBase, RedistBase);\r
+ PcdStatus = PcdSet64S (PcdGicDistributorBase, DistBase);\r
+ ASSERT_RETURN_ERROR (PcdStatus);\r
+ PcdStatus = PcdSet64S (PcdGicRedistributorsBase, RedistBase);\r
+ ASSERT_RETURN_ERROR (PcdStatus);\r
\r
DEBUG ((EFI_D_INFO, "Found GIC v3 (re)distributor @ 0x%Lx (0x%Lx)\n",\r
DistBase, RedistBase));\r
ASSERT (DistBase < MAX_UINTN);\r
ASSERT (CpuBase < MAX_UINTN);\r
\r
- PcdSet64 (PcdGicDistributorBase, DistBase);\r
- PcdSet64 (PcdGicInterruptInterfaceBase, CpuBase);\r
+ PcdStatus = PcdSet64S (PcdGicDistributorBase, DistBase);\r
+ ASSERT_RETURN_ERROR (PcdStatus);\r
+ PcdStatus = PcdSet64S (PcdGicInterruptInterfaceBase, CpuBase);\r
+ ASSERT_RETURN_ERROR (PcdStatus);\r
\r
DEBUG ((EFI_D_INFO, "Found GIC @ 0x%Lx/0x%Lx\n", DistBase, CpuBase));\r
\r