forked from Imagelibrary/rtems
smptests/smpmrsp01: Update run indicator only once
On the Freescale T2080 the excessive concurrent write/read lead to a livelock condition.
This commit is contained in:
@@ -212,8 +212,10 @@ static void run_task(rtems_task_argument arg)
|
|||||||
{
|
{
|
||||||
volatile bool *run = (volatile bool *) arg;
|
volatile bool *run = (volatile bool *) arg;
|
||||||
|
|
||||||
while (true) {
|
|
||||||
*run = true;
|
*run = true;
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
/* Do nothing */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user