Author: andrew
Date: Sat Oct 26 19:09:56 2013
New Revision: 257189
URL: http://svnweb.freebsd.org/changeset/base/257189

Log:
  Fix an itt instruction. We need to execute both the mov and b instructions
  when building for Thumb.

Modified:
  head/sys/arm/include/atomic.h

Modified: head/sys/arm/include/atomic.h
==============================================================================
--- head/sys/arm/include/atomic.h       Sat Oct 26 19:04:43 2013        
(r257188)
+++ head/sys/arm/include/atomic.h       Sat Oct 26 19:09:56 2013        
(r257189)
@@ -198,7 +198,7 @@ atomic_cmpset_32(volatile u_int32_t *p, 
        
        __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"
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to