diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8561a37cd4..e31c748b96 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +2007-05-23 Joel Sherrill + + Yu Chen + * score/src/corespinlockwait.c: Per question posted as + http://www.rtems.org/ml/rtems-users/2007/may/msg00180.html, changed + logical operator to <=. + 2007-05-22 Joel Sherrill * score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c, diff --git a/cpukit/score/src/corespinlockwait.c b/cpukit/score/src/corespinlockwait.c index 96c173855b..bdb2d408de 100644 --- a/cpukit/score/src/corespinlockwait.c +++ b/cpukit/score/src/corespinlockwait.c @@ -72,7 +72,7 @@ CORE_spinlock_Status _CORE_spinlock_Wait( /* * They are willing to wait but there could be a timeout. */ - if ( timeout && (limit >= _Watchdog_Ticks_since_boot)) { + if ( timeout && (limit <= _Watchdog_Ticks_since_boot) ) { the_spinlock->users -= 1; _ISR_Enable( level ); return CORE_SPINLOCK_TIMEOUT;