mirror of
https://github.com/yawut/SDL.git
synced 2026-07-30 23:17:23 -05:00
Check for __ARM_ARCH_5TEJ__ in spinlock atomics.
Fixes Bugzilla #1264. Thanks to Gueniffey for the patch!
This commit is contained in:
parent
73f4a2a1fe
commit
e7fb05cb0b
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user