5
Last change
on this file since fe100e16 was
fe100e16,
checked in by Sebastian Huber <sebastian.huber@…>, on 12/22/15 at 08:13:08
|
score: Add fatal errors for NULL entry init tasks
This simplifies the global construction.
Update #2514.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5fdb1e7b] | 1 | /* |
---|
| 2 | * Classic API Init task create failure |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Way too much stack space. Should generate a fatal error |
---|
| 7 | * on the init task create. |
---|
| 8 | */ |
---|
| 9 | #define CONFIGURE_HAS_OWN_INIT_TASK_TABLE |
---|
| 10 | #define CONFIGURE_INIT_TASK_STACK_SIZE RTEMS_MINIMUM_STACK_SIZE |
---|
| 11 | rtems_initialization_tasks_table Initialization_tasks[] = { |
---|
| 12 | { rtems_build_name('I', 'N', 'I', ' '), |
---|
| 13 | RTEMS_MINIMUM_STACK_SIZE, |
---|
| 14 | 1, |
---|
| 15 | RTEMS_DEFAULT_ATTRIBUTES, |
---|
| 16 | NULL, |
---|
| 17 | RTEMS_DEFAULT_MODES, |
---|
| 18 | 0 |
---|
| 19 | } |
---|
| 20 | }; |
---|
| 21 | #define CONFIGURE_INIT_TASK_TABLE Initialization_tasks |
---|
| 22 | #define CONFIGURE_INIT_TASK_TABLE_SIZE \ |
---|
| 23 | sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table) |
---|
| 24 | |
---|
[d329acf4] | 25 | #define FATAL_ERROR_TEST_NAME "2" |
---|
[5fdb1e7b] | 26 | #define FATAL_ERROR_DESCRIPTION "Classic API Init task start failure" |
---|
[fe100e16] | 27 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE |
---|
| 28 | #define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE |
---|
| 29 | #define FATAL_ERROR_EXPECTED_ERROR \ |
---|
| 30 | INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL |
---|
[5fdb1e7b] | 31 | |
---|
| 32 | void force_error() |
---|
| 33 | { |
---|
| 34 | /* |
---|
| 35 | * Case 2: Null entry |
---|
| 36 | */ |
---|
| 37 | |
---|
| 38 | /* we will not run this far */ |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.