5
Line | |
---|
1 | #ifdef HAVE_CONFIG_H |
---|
2 | #include "config.h" |
---|
3 | #endif |
---|
4 | |
---|
5 | #include "../spfatal_support/spfatal.h" |
---|
6 | |
---|
7 | /* |
---|
8 | * Classic API Init task create failure |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | * Way too much stack space. Should generate a fatal error |
---|
13 | * on the init task create. |
---|
14 | */ |
---|
15 | #define CONFIGURE_HAS_OWN_INIT_TASK_TABLE |
---|
16 | #define CONFIGURE_INIT_TASK_STACK_SIZE RTEMS_MINIMUM_STACK_SIZE |
---|
17 | rtems_initialization_tasks_table Initialization_tasks[] = { |
---|
18 | { rtems_build_name('I', 'N', 'I', ' '), |
---|
19 | RTEMS_MINIMUM_STACK_SIZE, |
---|
20 | 1, |
---|
21 | RTEMS_DEFAULT_ATTRIBUTES, |
---|
22 | Init, |
---|
23 | RTEMS_DEFAULT_MODES, |
---|
24 | 0 |
---|
25 | } |
---|
26 | }; |
---|
27 | #define CONFIGURE_INIT_TASK_TABLE Initialization_tasks |
---|
28 | #define CONFIGURE_INIT_TASK_TABLE_SIZE \ |
---|
29 | sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table) |
---|
30 | |
---|
31 | #define FATAL_ERROR_TEST_NAME "4" |
---|
32 | #define FATAL_ERROR_DESCRIPTION \ |
---|
33 | "Classic API call rtems_fatal_error_occurred" |
---|
34 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API |
---|
35 | #define FATAL_ERROR_EXPECTED_ERROR 0xdead |
---|
36 | |
---|
37 | static void force_error(void) |
---|
38 | { |
---|
39 | rtems_fatal_error_occurred( 0xdead ); |
---|
40 | /* we will not run this far */ |
---|
41 | } |
---|
42 | |
---|
43 | #include "../spfatal_support/spfatalimpl.h" |
---|
Note: See
TracBrowser
for help on using the repository browser.