From f742e057110986a4e671e7d0a344bd4ce78fda5f Mon Sep 17 00:00:00 2001 From: hujun5 Date: Tue, 13 Aug 2024 16:19:55 +0800 Subject: [PATCH] arm64: remove the operation of clearing interrupts during GIC initialization To align with the implementation of ARMv7-A, remove the operation of clearing interrupts during GIC initialization to avoid losing interrupts during asynchronous startup. Signed-off-by: hujun5 --- arch/arm64/src/common/arm64_gicv3.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/src/common/arm64_gicv3.c b/arch/arm64/src/common/arm64_gicv3.c index 5512ab4c5de97..9fff14cb8fc3b 100644 --- a/arch/arm64/src/common/arm64_gicv3.c +++ b/arch/arm64/src/common/arm64_gicv3.c @@ -483,10 +483,6 @@ static void gicv3_cpuif_init(void) gic_wait_rwp(0); - /* Clear pending */ - - putreg32(BIT64_MASK(GIC_NUM_INTR_PER_REG), ICPENDR(base, 0)); - /* Configure all SGIs/PPIs as G1S or G1NS depending on Zephyr * is run in EL1S or EL1NS respectively. * All interrupts will be delivered as irq