audk/ArmPkg/Drivers/ArmGic
Kun Qin 957fcbe7a3 ArmPkg: ArmGic: Cast CpuTarget to UINT32 for legacy GIC
The current code path supporting `PcdArmGicV3WithV2Legacy` will read 32
bit CPU target and try to program ARM_GIC_ICDIPTR. However, all these
operations are 32bit wide.

This change casts the CpuTarget variable to be UINT32 before calling
MMIO read.

Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
2024-12-11 18:21:29 +00:00
..
GicV2 ArmPkg: Adjust variable type and cast for RegShift & RegOffset 2023-06-01 15:52:01 +00:00
GicV3 ArmPkg: ArmGic: Cast CpuTarget to UINT32 for legacy GIC 2024-12-11 18:21:29 +00:00
ArmGicCommonDxe.c ArmPkg: Remove unused function declarations 2023-06-01 15:52:01 +00:00
ArmGicDxe.c ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ArmGicDxe.h ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ArmGicDxe.inf ArmPkg: list module-internal header files in INF [Sources] 2019-07-23 00:20:18 +02:00
ArmGicLib.c ArmPkg: CodeQL Fixes. 2024-10-16 08:18:16 +00:00
ArmGicLib.inf ArmPkg: Remove RVCT support 2022-05-13 14:58:54 +00:00
ArmGicNonSecLib.c ArmPkg: Fix Non-Boolean comparison in ArmGicEnableDistributor 2023-06-01 15:52:01 +00:00