audk/ArmPkg/Drivers
Sami Mujawar ded1d5414b ArmPkg: Fix ArmGicAcknowledgeInterrupt () for GICv3
The ArmGicAcknowledgeInterrupt () returns the value returned by the
Interrupt Acknowledge Register and the InterruptID separately in an out
parameter.

The function documents the following: 'InterruptId is returned
separately from the register value because in the GICv2 the register
value contains the CpuId and InterruptId while in the GICv3 the register
value is only the InterruptId.'

This function skips setting the InterruptId in the out parameter for
GICv3. Although the return value from the function is the InterruptId
for GICv3, this breaks the function usage model as the caller expects
the InterruptId in the out parameter for the function.  e.g. The caller
may end up using the InterruptID which could potentially be an
uninitialised variable value.

Therefore, set the InterruptID in the function out parameter for GICv3
as well.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
2023-06-01 15:52:01 +00:00
..
ArmCrashDumpDxe ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ArmGic ArmPkg: Fix ArmGicAcknowledgeInterrupt () for GICv3 2023-06-01 15:52:01 +00:00
ArmPciCpuIo2Dxe ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ArmPsciMpServicesDxe ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls 2023-01-27 14:18:56 +00:00
ArmScmiDxe ArmPkg/ArmScmiDxe: Fix the calculation of RequiredArraySize 2023-02-06 13:56:24 +00:00
CpuDxe ArmPkg/CpuDxe: Perform preliminary NX remap of free memory 2023-05-29 16:51:01 +00:00
CpuPei ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
GenericWatchdogDxe ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MmCommunicationDxe ArmPkg: MmCommunicationDxe: Update MM communicate `MessageLength` check 2022-01-27 02:16:17 +00:00
TimerDxe ArmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00