diff options
author | Patrick Trantham <patrick.trantham@fuel7.com> | 2012-06-14 11:50:56 -0500 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-06-15 06:20:12 +0200 |
commit | 1c2f3a290efa328cd29ee7c032b230e09e4d8458 (patch) | |
tree | fa5764af3e624dac14fb3a8535a3bd6af9d41b9e /src | |
parent | 0bb0d07abd789d4efa285e757efd14b3717db0a1 (diff) |
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')
-rw-r--r-- | src/atomic_ptr.hpp | 1 |
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" |