diff --git a/ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c b/ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c index 31572438d9..f90391b716 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c @@ -33,9 +33,9 @@ ArmGicEnableDistributor ( MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1); } else { if (MmioRead32 (GicDistributorBase + ARM_GIC_ICDDCR) & ARM_GIC_ICDDCR_ARE) { - MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x2); + MmioOr32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x2); } else { - MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1); + MmioOr32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1); } } }