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

Commit

Permalink
Fixed bug 1122 (spinlock fails to compile with -march=armv4t)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 17, 2011
1 parent 315edb8 commit fdbc5fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/atomic/SDL_spinlock.c
Expand Up @@ -62,7 +62,9 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
#elif HAVE_GCC_ATOMICS || HAVE_GCC_SYNC_LOCK_TEST_AND_SET
return (__sync_lock_test_and_set(lock, 1) == 0);

#elif defined(__GNUC__) && defined(__arm__) && (defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__))
#elif defined(__GNUC__) && defined(__arm__) && \
(defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__))
int result;
__asm__ __volatile__ (
"swp %0, %1, [%2]\n"
Expand Down

0 comments on commit fdbc5fa

Please sign in to comment.