From d5eee8f3fbf53fce84c979e68433a27c93e3e96b Mon Sep 17 00:00:00 2001 From: Ming Huang Date: Wed, 1 Feb 2023 14:03:44 +0800 Subject: [PATCH] feat(gicv3): enlarge the range for intr_num of structure interrupt_prop_t As the max ESPI can be 5119, so enlarge the intr_num range of structure interrupt_prop_t. After the patch the ESPI can be add to this macro: define PLATFORM_G1S_PROPS(grp) \ INTR_PROP_DESC(197 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE), \ INTR_PROP_DESC(199 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE) The firmware-design.rst will be updated accordingly. Signed-off-by: Ming Huang Change-Id: Ic923868bb1b00c017410dc2aeabfda58ee54782f --- docs/design/firmware-design.rst | 2 +- include/common/interrupt_props.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/design/firmware-design.rst b/docs/design/firmware-design.rst index 84bba18e6..65aa4a63c 100644 --- a/docs/design/firmware-design.rst +++ b/docs/design/firmware-design.rst @@ -1330,7 +1330,7 @@ element of the array specifies the interrupt number and its attributes (priority, group, configuration). Each element of the array shall be populated by the macro ``INTR_PROP_DESC()``. The macro takes the following arguments: -- 10-bit interrupt number, +- 13-bit interrupt number, - 8-bit interrupt priority, diff --git a/include/common/interrupt_props.h b/include/common/interrupt_props.h index 07bafaae5..681c89687 100644 --- a/include/common/interrupt_props.h +++ b/include/common/interrupt_props.h @@ -19,7 +19,7 @@ } typedef struct interrupt_prop { - unsigned int intr_num:10; + unsigned int intr_num:13; unsigned int intr_pri:8; unsigned int intr_grp:2; unsigned int intr_cfg:2;