diff options
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/sp04/Makefile.am | 6 | ||||
-rw-r--r-- | testsuites/sptests/sp04/system.h | 10 | ||||
-rw-r--r-- | testsuites/sptests/sp04/tswitch.c | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/testsuites/sptests/sp04/Makefile.am b/testsuites/sptests/sp04/Makefile.am index 925439b0e3..07a6f11e46 100644 --- a/testsuites/sptests/sp04/Makefile.am +++ b/testsuites/sptests/sp04/Makefile.am @@ -1,6 +1,6 @@ -## +## ## $Id$ -## +## AUTOMAKE_OPTIONS = foreign 1.4 @@ -12,7 +12,7 @@ C_FILES = init.c task1.c task2.c task3.c tswitch.c C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) H_FILES = system.h -noinst_HEADERS =$(H_FILES) +noinst_HEADERS = $(H_FILES) DOCTYPES = scn doc DOCS = $(DOCTYPES:%=$(TEST).%) diff --git a/testsuites/sptests/sp04/system.h b/testsuites/sptests/sp04/system.h index f7f2832f54..cf5d6216f2 100644 --- a/testsuites/sptests/sp04/system.h +++ b/testsuites/sptests/sp04/system.h @@ -40,10 +40,8 @@ void Task_switch( /* configuration information */ -#define CONFIGURE_SPTEST - -#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 #define CONFIGURE_TICKS_PER_TIMESLICE 100 @@ -51,6 +49,7 @@ void Task_switch( #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE) +#define CONFIGURE_MAXIMUM_TASKS 4 #include <confdefs.h> @@ -68,12 +67,15 @@ TEST_EXTERN volatile rtems_unsigned32 Run_count[ 4 ]; /* * Keep track of task switches */ + struct taskSwitchLog { int taskIndex; rtems_time_of_day when; }; + extern struct taskSwitchLog taskSwitchLog[]; extern int taskSwitchLogIndex; volatile extern int testsFinished; + /* end of include file */ diff --git a/testsuites/sptests/sp04/tswitch.c b/testsuites/sptests/sp04/tswitch.c index 975ca710c3..a573adbb1e 100644 --- a/testsuites/sptests/sp04/tswitch.c +++ b/testsuites/sptests/sp04/tswitch.c @@ -24,7 +24,7 @@ struct taskSwitchLog taskSwitchLog[1000]; int taskSwitchLogIndex; -volatile int testsFinished;; +volatile int testsFinished; rtems_extension Task_switch( rtems_tcb *unused, |