summaryrefslogtreecommitdiff
path: root/src/atomic_ptr.hpp
diff options
context:
space:
mode:
authorPatrick Trantham <patrick.trantham@fuel7.com>2012-06-14 11:50:56 -0500
committerMartin Sustrik <sustrik@250bpm.com>2012-06-15 06:20:12 +0200
commit1c2f3a290efa328cd29ee7c032b230e09e4d8458 (patch)
treefa5764af3e624dac14fb3a8535a3bd6af9d41b9e /src/atomic_ptr.hpp
parent0bb0d07abd789d4efa285e757efd14b3717db0a1 (diff)
atomic_ptr: Add IT instruction for arm-thumb2HEADmaster
Add IT instruction prior to strexeq to fix compilation in thumb mode. Signed-off-by: Patrick Trantham <patrick.trantham@fuel7.com>
Diffstat (limited to 'src/atomic_ptr.hpp')
-rw-r--r--src/atomic_ptr.hpp1
1 files changed, 1 insertions, 0 deletions
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"