From b7ad0b3d0d6716dd82660b06d59d2717d6d7332c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 3 Apr 2021 20:46:35 +0800 Subject: [PATCH] arch/armv6-m: Remove cpsid and cpsie from exception_common since the hardware do the action automatically Signed-off-by: Xiang Xiao --- arch/arm/src/armv6-m/arm_exception.S | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm/src/armv6-m/arm_exception.S b/arch/arm/src/armv6-m/arm_exception.S index bf513898dd4..685c1139b1f 100644 --- a/arch/arm/src/armv6-m/arm_exception.S +++ b/arch/arm/src/armv6-m/arm_exception.S @@ -138,12 +138,6 @@ exception_common: mrs r0, ipsr /* R0=exception number */ - /* Disable interrupts, select the stack to use for interrupt handling - * and call arm_doirq to handle the interrupt - */ - - cpsid i /* Disable further interrupts */ - /* If CONFIG_ARCH_INTERRUPTSTACK is defined, we will use a special interrupt * stack pointer. The way that this is done here prohibits nested interrupts! * Otherwise, we will use the stack that was current when the interrupt was taken. @@ -246,7 +240,6 @@ exception_common: /* Restore the interrupt state */ msr primask, r3 /* Restore interrupts priority masking*/ - cpsie i /* Re-enable interrupts */ /* Always return with R14 containing the special value that will: (1) * return to thread mode, and (2) select the correct stack.