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 <=.
This commit is contained in:
Joel Sherrill
2007-05-23 18:47:46 +00:00
parent 60f016f59d
commit c5b5725a51
2 changed files with 8 additions and 1 deletions

View File

@@ -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,

View File

@@ -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;