Check for __ARM_ARCH_5TEJ__ in spinlock atomics.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 16 Oct 2011 03:27:48 -0400
changeset 5999 0e3fd8178e1d
parent 5998 e9b9ef14aef4
child 6000 3c980a9f983c
Check for __ARM_ARCH_5TEJ__ in spinlock atomics. Fixes Bugzilla #1264. Thanks to Gueniffey for the patch!
src/atomic/SDL_spinlock.c
--- a/src/atomic/SDL_spinlock.c	Sun Oct 16 03:02:46 2011 -0400
+++ b/src/atomic/SDL_spinlock.c	Sun Oct 16 03:27:48 2011 -0400
@@ -60,7 +60,8 @@
 
 #elif defined(__GNUC__) && defined(__arm__) && \
         (defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
-         defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__))
+         defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__) || \
+         defined(__ARM_ARCH_5TEJ__))
     int result;
     __asm__ __volatile__ (
         "swp %0, %1, [%2]\n"