From eea232d5d0f8a72a2a26068f43be878bf034c3fa Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 16 Oct 2011 03:27:48 -0400 Subject: [PATCH] Check for __ARM_ARCH_5TEJ__ in spinlock atomics. Fixes Bugzilla #1264. Thanks to Gueniffey for the patch! --- src/atomic/SDL_spinlock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c index 653bff0e5..805afcdaa 100644 --- a/src/atomic/SDL_spinlock.c +++ b/src/atomic/SDL_spinlock.c @@ -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"