src/atomic/SDL_atomic.c
changeset 7394 38dc4961ab15
parent 7191 75360622e65f
child 7860 2b0bcdea3a79
equal deleted inserted replaced
7393:358696c354a8 7394:38dc4961ab15
    99     leaveLock(a);
    99     leaveLock(a);
   100 
   100 
   101     return retval;
   101     return retval;
   102 }
   102 }
   103 
   103 
       
   104 #if defined(__GNUC__) && defined(__arm__) && \
       
   105    (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__))
       
   106 __asm__(
       
   107 "   .align 2\n"
       
   108 "   .globl _SDL_MemoryBarrierRelease\n"
       
   109 "   .globl _SDL_MemoryBarrierAcquire\n"
       
   110 "_SDL_MemoryBarrierRelease:\n"
       
   111 "_SDL_MemoryBarrierAcquire:\n"
       
   112 "   mov r0, #0\n"
       
   113 "   mcr p15, 0, r0, c7, c10, 5\n"
       
   114 "   bx lr\n"
       
   115 );
       
   116 #endif /* __GNUC__ && __arm__ && ARMV6 */
       
   117 
   104 /* vi: set ts=4 sw=4 expandtab: */
   118 /* vi: set ts=4 sw=4 expandtab: */