From 8f8f979e4b4f105be1a895cffa28543139db5b7d Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 18 May 2014 16:17:13 +0000 Subject: MFC 257189: 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(-) (limited to 'sys/arm/include') diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h index f07fcef..02be1bd 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" -- cgit v1.1