From 1c2f3a290efa328cd29ee7c032b230e09e4d8458 Mon Sep 17 00:00:00 2001 From: Patrick Trantham Date: Thu, 14 Jun 2012 11:50:56 -0500 Subject: atomic_ptr: Add IT instruction for arm-thumb2 Add IT instruction prior to strexeq to fix compilation in thumb mode. Signed-off-by: Patrick Trantham --- src/atomic_ptr.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/atomic_ptr.hpp b/src/atomic_ptr.hpp index adf1c87..baa28ff 100644 --- a/src/atomic_ptr.hpp +++ b/src/atomic_ptr.hpp @@ -132,6 +132,7 @@ namespace xs "1: ldrex %1, [%3]\n\t" " mov %0, #0\n\t" " teq %1, %4\n\t" + " it eq\n" " strexeq %0, %5, [%3]\n\t" " teq %0, #0\n\t" " bne 1b\n\t" -- cgit v1.2.3