From 47d1f5d8f98fc6623e8d85ba95cef8b3a7aff14b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 4 May 1998 12:41:42 +0000 Subject: Fixed prototype of Fatal_Extension. Fixed interface to cofndefs.h for initial extension set. --- testsuites/sptests/spfatal/fatal.c | 4 ++-- testsuites/sptests/spfatal/system.h | 29 +++++++++++++---------------- 2 files changed, 15 insertions(+), 18 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/spfatal/fatal.c b/testsuites/sptests/spfatal/fatal.c index a52149865a..aef4a159de 100644 --- a/testsuites/sptests/spfatal/fatal.c +++ b/testsuites/sptests/spfatal/fatal.c @@ -58,8 +58,8 @@ void Process_case(); rtems_extension Fatal_extension( rtems_unsigned32 source, - rtems_unsigned32 error, - boolean is_internal + boolean is_internal, + rtems_unsigned32 error ) { int index; diff --git a/testsuites/sptests/spfatal/system.h b/testsuites/sptests/spfatal/system.h index 7c51103edf..f2391c2a94 100644 --- a/testsuites/sptests/spfatal/system.h +++ b/testsuites/sptests/spfatal/system.h @@ -29,8 +29,8 @@ void put_error( rtems_extension Fatal_extension( rtems_unsigned32 source, - rtems_unsigned32 error, - boolean is_internal + boolean is_internal, + rtems_unsigned32 error ); rtems_task Task_1( @@ -41,18 +41,17 @@ rtems_task Task_1( extern rtems_extensions_table initial_extensions; -#ifdef TEST_INIT -rtems_extensions_table initial_extensions = { - NULL, /* create */ - NULL, /* start */ - NULL, /* restart */ - NULL, /* delete */ - NULL, /* switch */ - NULL, /* begin */ - NULL, /* exitted */ - Fatal_extension /* fatal */ -}; -#endif +#define CONFIGURE_INITIAL_EXTENSIONS \ + { \ + NULL, /* create */ \ + NULL, /* start */ \ + NULL, /* restart */ \ + NULL, /* delete */ \ + NULL, /* switch */ \ + NULL, /* begin */ \ + NULL, /* exitted */ \ + Fatal_extension /* fatal */ \ + } #define CONFIGURE_SPTEST @@ -62,8 +61,6 @@ rtems_extensions_table initial_extensions = { #define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(0) #define CONFIGURE_TICKS_PER_TIMESLICE 0 -#define CONFIGURE_INITIAL_EXTENSIONS &initial_extensions - #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #include -- cgit v1.2.3