forked from Imagelibrary/rtems
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:
@@ -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>
|
2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
|
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ CORE_spinlock_Status _CORE_spinlock_Wait(
|
|||||||
/*
|
/*
|
||||||
* They are willing to wait but there could be a timeout.
|
* 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;
|
the_spinlock->users -= 1;
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
return CORE_SPINLOCK_TIMEOUT;
|
return CORE_SPINLOCK_TIMEOUT;
|
||||||
|
|||||||
Reference in New Issue
Block a user