diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 09:56:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 09:56:40 +0100 |
commit | aadd318cd92e42839cf86260e1085f2953113180 (patch) | |
tree | 5a66481b0a69b73d19751377a9cfdc64ab14cb3c /cpukit/posix/src | |
parent | libdebugger: Build for ARM's without a CP15. (diff) | |
download | rtems-aadd318cd92e42839cf86260e1085f2953113180.tar.bz2 |
posix: Fix fall back spinlock implementation
Update #2674.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/pspinlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/posix/src/pspinlock.c b/cpukit/posix/src/pspinlock.c index 4701315261..2bcd59b430 100644 --- a/cpukit/posix/src/pspinlock.c +++ b/cpukit/posix/src/pspinlock.c @@ -54,13 +54,13 @@ RTEMS_STATIC_ASSERT( POSIX_SPINLOCK_T_SIZE ); #else -#if defined(RTEMS_SMP) POSIX_Spinlock_Control _POSIX_Spinlock_Global; +int _POSIX_Spinlock_Nest_level; + +#if defined(RTEMS_SMP) uint32_t _POSIX_Spinlock_Owner = 0xffffffff; #endif - -int _POSIX_Spinlock_Nest_level; #endif int pthread_spin_lock( pthread_spinlock_t *spinlock ) |