summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-23 18:47:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-23 18:47:46 +0000
commitc5b5725a5195d79cb43f716f78899ea2939b86b3 (patch)
treef23eadd54b0ad9066daea8804edaf0daadbcbc2d /cpukit
parent2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-c5b5725a5195d79cb43f716f78899ea2939b86b3.tar.bz2
2007-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
Yu Chen <chyyuu@gmail.com> * score/src/corespinlockwait.c: Per question posted as http://www.rtems.org/ml/rtems-users/2007/may/msg00180.html, changed logical operator to <=.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog7
-rw-r--r--cpukit/score/src/corespinlockwait.c2
2 files changed, 8 insertions, 1 deletions
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 <joel.sherrill@OARcorp.com>
+
+ Yu Chen <chyyuu@gmail.com>
+ * 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 <joel.sherrill@OARcorp.com>
* 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;