Check for __ARM_ARCH_5TEJ__ in spinlock atomics.

Fixes Bugzilla #1264.

Thanks to Gueniffey for the patch!
This commit is contained in:
Ryan C. Gordon 2011-10-16 03:27:48 -04:00
parent 5a652760ab
commit 3d70224c40

View file

@ -60,7 +60,8 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
#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"