From aadd318cd92e42839cf86260e1085f2953113180 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 2 Dec 2016 09:56:40 +0100 Subject: posix: Fix fall back spinlock implementation Update #2674. --- cpukit/posix/src/pspinlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/src') 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 ) -- cgit v1.2.3