From 60972b36c1eeff34415a330538241f58c46b8558 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sun, 11 Oct 2020 03:24:18 -0700 Subject: [PATCH] [arch][arm][cortex-m] select the simplified arch interrupt save/restore for armv6m too Previously had only selected armv7m for the simplified version. Forgot that cortex-m0s are armv6m and could use this version. --- arch/arm/include/arch/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/arch/spinlock.h b/arch/arm/include/arch/spinlock.h index dbb26ebc8..dcd1d033c 100644 --- a/arch/arm/include/arch/spinlock.h +++ b/arch/arm/include/arch/spinlock.h @@ -50,7 +50,7 @@ static inline void arch_spin_unlock(spin_lock_t *lock) { #endif -#if !ARM_ISA_ARMV7M +#if !(ARM_ISA_ARMV7M || ARM_ISA_ARMV6M) /* ARM specific flags */ #define SPIN_LOCK_FLAG_IRQ 0x40000000