The address of GICR_IPRIORITYR is in SGI_base frame. ARM_GICR_CTLR_FRAME_SIZE
should add to GicCpuRedistributorBase for GICR_IPRIORITYR. Otherwise RAS
error(Uncorrected software error) will reported in ArmGicDxe.

Signed-off-by: Ming Huang <huangm...@linux.alibaba.com>
---
 ArmPkg/Drivers/ArmGic/ArmGicLib.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c 
b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
index 8ef32b33a1..7a54972455 100644
--- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
+++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
@@ -235,6 +235,9 @@ ArmGicSetInterruptPriority (
       return;
     }
 
+    // The address of GICR_IPRIORITYR is in SGI_base frame.
+    // ARM_GICR_CTLR_FRAME_SIZE should add to GicCpuRedistributorBase for 
GICR_IPRIORITYR.
+    GicCpuRedistributorBase += ARM_GICR_CTLR_FRAME_SIZE;
     MmioAndThenOr32 (
       GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
       ~(0xff << RegShift),
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#71885): https://edk2.groups.io/g/devel/message/71885
Mute This Topic: https://groups.io/mt/80789081/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to