src/atomic/SDL_atomic.c
changeset 10879 773cbb61ad27
parent 10737 3406a0f8b041
child 10946 623e8891e091
     1.1 --- a/src/atomic/SDL_atomic.c	Fri Feb 10 09:41:16 2017 -0800
     1.2 +++ b/src/atomic/SDL_atomic.c	Fri Feb 10 11:21:15 2017 -0800
     1.3 @@ -228,19 +228,16 @@
     1.4      return value;
     1.5  }
     1.6  
     1.7 -#ifdef __thumb__
     1.8 -#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
     1.9 -__asm__(
    1.10 -"   .align 2\n"
    1.11 -"   .globl _SDL_MemoryBarrierRelease\n"
    1.12 -"   .globl _SDL_MemoryBarrierAcquire\n"
    1.13 -"_SDL_MemoryBarrierRelease:\n"
    1.14 -"_SDL_MemoryBarrierAcquire:\n"
    1.15 -"   mov r0, #0\n"
    1.16 -"   mcr p15, 0, r0, c7, c10, 5\n"
    1.17 -"   bx lr\n"
    1.18 -);
    1.19 -#endif
    1.20 -#endif
    1.21 +void
    1.22 +SDL_MemoryBarrierReleaseFunction(void)
    1.23 +{
    1.24 +    SDL_MemoryBarrierRelease();
    1.25 +}
    1.26 +
    1.27 +void
    1.28 +SDL_MemoryBarrierAcquireFunction(void)
    1.29 +{
    1.30 +    SDL_MemoryBarrierAcquire();
    1.31 +}
    1.32  
    1.33  /* vi: set ts=4 sw=4 expandtab: */