armv7/8m: unmask all the IRQ when thread start
NVIC_SYSH_PRIORITY_MIN not the basepri loweest prio spec says: basepri 0 - Disables masking by BASEPRI Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
33e30239f1
commit
aa4a428825
@ -440,7 +440,7 @@ static inline void up_irq_enable(void)
|
||||
{
|
||||
/* In this case, we are always retaining or lowering the priority value */
|
||||
|
||||
setbasepri(NVIC_SYSH_PRIORITY_MIN);
|
||||
setbasepri(0);
|
||||
__asm__ __volatile__ ("\tcpsie i\n");
|
||||
}
|
||||
|
||||
|
@ -413,7 +413,7 @@ static inline void up_irq_enable(void)
|
||||
{
|
||||
/* In this case, we are always retaining or lowering the priority value */
|
||||
|
||||
setbasepri(NVIC_SYSH_PRIORITY_MIN);
|
||||
setbasepri(0);
|
||||
__asm__ __volatile__ ("\tcpsie i\n");
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ void up_initial_state(struct tcb_s *tcb)
|
||||
#else /* CONFIG_SUPPRESS_INTERRUPTS */
|
||||
|
||||
#ifdef CONFIG_ARMV7M_USEBASEPRI
|
||||
xcp->regs[REG_BASEPRI] = NVIC_SYSH_PRIORITY_MIN;
|
||||
xcp->regs[REG_BASEPRI] = 0;
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_SUPPRESS_INTERRUPTS */
|
||||
|
@ -169,7 +169,7 @@ void up_initial_state(struct tcb_s *tcb)
|
||||
#else /* CONFIG_SUPPRESS_INTERRUPTS */
|
||||
|
||||
#ifdef CONFIG_ARMV8M_USEBASEPRI
|
||||
xcp->regs[REG_BASEPRI] = NVIC_SYSH_PRIORITY_MIN;
|
||||
xcp->regs[REG_BASEPRI] = 0;
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_SUPPRESS_INTERRUPTS */
|
||||
|
Loading…
Reference in New Issue
Block a user