Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Check for __ARM_ARCH_5TEJ__ in spinlock atomics.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1264.

Thanks to Gueniffey for the patch!
  • Loading branch information
icculus committed Oct 16, 2011
1 parent c97fd18 commit eea232d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/atomic/SDL_spinlock.c
Expand Up @@ -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"
Expand Down

0 comments on commit eea232d

Please sign in to comment.