From 56c6c55985a1b24cdcc7b7813218f7a8fc697dd3 Mon Sep 17 00:00:00 2001 From: Shunyong Yang Date: Fri, 19 Mar 2021 16:02:48 +0800 Subject: [PATCH] Disable FIQ after calling application IRQ handler External interrupt(FIQ and IRQ) should be disabled to protect critical data after calling vApplicationIRQHandler. When FIQ is configured to handle external interrupt (e.g. external interrupt is configured as group0 in secure state), FIQ should be also disabled. Signed-off-by: Shunyong Yang --- portable/GCC/ARM_CA53_64_BIT/portASM.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/GCC/ARM_CA53_64_BIT/portASM.S b/portable/GCC/ARM_CA53_64_BIT/portASM.S index 80cb574f0..47f7c7391 100644 --- a/portable/GCC/ARM_CA53_64_BIT/portASM.S +++ b/portable/GCC/ARM_CA53_64_BIT/portASM.S @@ -319,7 +319,7 @@ FreeRTOS_IRQ_Handler: BL vApplicationIRQHandler /* Disable interrupts. */ - MSR DAIFSET, #2 + MSR DAIFSET, #3 DSB SY ISB SY