From 5c28345815a4039eb5a2ba933573e761a8ff03ee Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 29 Jul 2011 18:14:49 +0000 Subject: 2011-07-29 Jennifer Averett * smp03/init.c, smp03/system.h, smp03/tasks.c: Modified test to force a task to run prior to starting the next task. This allows the last task to always preempt, where if the tasks started in an odd order the last task could run prior the the task it was supposed to preempt. --- testsuites/smptests/ChangeLog | 8 ++++++++ testsuites/smptests/smp03/init.c | 33 +++++++++++++++++++++++---------- testsuites/smptests/smp03/system.h | 6 ++++++ testsuites/smptests/smp03/tasks.c | 7 +------ 4 files changed, 38 insertions(+), 16 deletions(-) (limited to 'testsuites') diff --git a/testsuites/smptests/ChangeLog b/testsuites/smptests/ChangeLog index 03be0e4c1a..0dc8526b21 100644 --- a/testsuites/smptests/ChangeLog +++ b/testsuites/smptests/ChangeLog @@ -1,3 +1,11 @@ +2011-07-29 Jennifer Averett + + * smp03/init.c, smp03/system.h, smp03/tasks.c: Modified test to force a + task to run prior to starting the next task. This allows the last + task to always preempt, where if the tasks started in an odd order + the last task could run prior the the task it was supposed to + preempt. + 2011-07-29 Jennifer Averett * smp01/init.c, smp02/init.c, smp02/tasks.c, smp03/init.c, diff --git a/testsuites/smptests/smp03/init.c b/testsuites/smptests/smp03/init.c index 3ea0330a06..55a2cc7945 100644 --- a/testsuites/smptests/smp03/init.c +++ b/testsuites/smptests/smp03/init.c @@ -49,6 +49,11 @@ rtems_task Init( locked_printf( "\n\n*** SMP03 TEST ***\n" ); + /* Initialize the TaskRan array */ + TaskRan[0] = true; + for ( i=1; i