arm-trusted-firmware/drivers/arm/gic/v3
Heyi Guo deb18901d1 drivers/gicv3: fix potential GICD context override with ESPI enabled
RESTORE/SAVE_GICD_EREGS uses (int_id - (MIN_ESPI_ID - MIN_SPI_ID)) to
get the context array index for ESPI, which will override the space of
standard SPI starting from (MIN_SPI_ID + MIN_SPI_ID).

However, using TOTAL_SPI_INTR_NUM to replace the above MIN_SPI_ID
cannot totally fix the issue, for TOTAL_SPI_INTR_NUM is not well
aligned and the array index will be rounded down by the shifting
operation if being shifted more than 2 bits. It will cause buffer
override again when the existing maximum SPI reaches 1019.

So round up TOTAL_SPI_INTR_NUM with (1 << REG##R_SHIFT) for GICD
context arrays.

Signed-off-by: Heyi Guo <guoheyi@linux.alibaba.com>
Change-Id: I5be2837c42f381a62f8d46a4ecd778009b1fe059
2021-02-03 11:12:07 +00:00
..
arm_gicv3_common.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
gic-x00.c GIC-600: Fix MISRA-2012 defects 2020-07-29 16:51:05 +00:00
gic600_multichip.c GIC-600: Fix include ordering according to the coding style 2019-11-19 11:38:33 +00:00
gic600_multichip_private.h gic multichip: add support for clayton 2020-04-07 18:41:13 +05:30
gicdv3_helpers.c TF-A GICv3 driver: Add extended PPI and SPI range 2020-04-06 16:27:54 +01:00
gicrv3_helpers.c TF-A GICv3 driver: Change API for GICR_IPRIORITYR accessors 2020-04-07 18:40:44 +01:00
gicv3.mk GICv3: GIC-600: Detect GIC-600 at runtime 2020-06-09 17:05:49 +00:00
gicv3_helpers.c drivers: arm: gicv3: Allow detecting number of cores 2020-09-29 13:28:25 +01:00
gicv3_main.c drivers/gicv3: fix potential GICD context override with ESPI enabled 2021-02-03 11:12:07 +00:00
gicv3_private.h TF-A GICv3 driver: Change API for GICR_IPRIORITYR accessors 2020-04-07 18:40:44 +01:00