Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Check for __ARM_ARCH_5TEJ__ in spinlock atomics.

Fixes Bugzilla #1264.

Thanks to Gueniffey for the patch!
  • Loading branch information
icculus committed Oct 16, 2011
1 parent c97fd18 commit eea232d5d0f8a72a2a26068f43be878bf034c3fa
Showing with 2 additions and 1 deletion.
  1. +2 −1 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"

0 comments on commit eea232d

Please sign in to comment.