From f2b86f9bd8cdeb3b82c68fecf1ef088db805385e Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 26 Oct 2013 19:09:56 +0000 Subject: [PATCH] Fix an itt instruction. We need to execute both the mov and b instructions when building for Thumb. --- sys/arm/include/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h index 2bd08c16419d..0db31c73f1e6 100644 --- a/sys/arm/include/atomic.h +++ b/sys/arm/include/atomic.h @@ -198,7 +198,7 @@ atomic_cmpset_32(volatile u_int32_t *p, volatile u_int32_t cmpval, volatile u_in __asm __volatile("1: ldrex %0, [%1]\n" "cmp %0, %2\n" - "it ne\n" + "itt ne\n" "movne %0, #0\n" "bne 2f\n" "strex %0, %3, [%1]\n"