diff options
Diffstat (limited to 'testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c')
-rw-r--r-- | testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c b/testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c index c31aef5a7f..6f5eb21bfb 100644 --- a/testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c +++ b/testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown-response.c @@ -52,6 +52,8 @@ #include "config.h" #endif +#include <rtems/score/smpimpl.h> + #include "tr-fatal-bsp-sparc-leon3-shutdown-response.h" #include <rtems/test.h> @@ -72,6 +74,17 @@ const char rtems_test_name[] = "FatalBspSparcLeon3ShutdownResponse"; #define FATAL_SYSINIT_RUN BspSparcLeon3ValFatalShutdownResponse_Run +static void FatalSysinitExit( rtems_fatal_code exit_code ) +{ + if ( exit_code == 0 ) { + rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN ); + } else { + rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, exit_code ); + } +} + +#define FATAL_SYSINIT_EXIT( exit_code ) FatalSysinitExit( exit_code ) + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER #define CONFIGURE_MAXIMUM_PROCESSORS 2 |