summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-04 12:41:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-04 12:41:42 +0000
commit47d1f5d8f98fc6623e8d85ba95cef8b3a7aff14b (patch)
tree552aa60c0492d17d4e7781f79c391f09354bf726 /testsuites
parentPatch from Eric Norum to switch to termios callback structure, add (diff)
downloadrtems-47d1f5d8f98fc6623e8d85ba95cef8b3a7aff14b.tar.bz2
Fixed prototype of Fatal_Extension.
Fixed interface to cofndefs.h for initial extension set.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spfatal/fatal.c4
-rw-r--r--testsuites/sptests/spfatal/system.h29
2 files changed, 15 insertions, 18 deletions
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 <confdefs.h>