arch/armv6-m: Remove cpsid and cpsie from exception_common
since the hardware do the action automatically Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3cf070e173
commit
b7ad0b3d0d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user