[5fdb1e7b] | 1 | /* system.h |
---|
| 2 | * |
---|
| 3 | * This include file contains information that is included in every |
---|
| 4 | * function in the test set. |
---|
| 5 | * |
---|
| 6 | * COPYRIGHT (c) 1989-1999. |
---|
| 7 | * On-Line Applications Research Corporation (OAR). |
---|
| 8 | * |
---|
| 9 | * The license and distribution terms for this file may be |
---|
| 10 | * found in the file LICENSE in this distribution or at |
---|
| 11 | * http://www.rtems.com/license/LICENSE. |
---|
| 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | /* |
---|
| 17 | * Some of the fatal error cases require the ability to peek inside RTEMS |
---|
| 18 | */ |
---|
| 19 | #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ |
---|
| 20 | #include <rtems.h> |
---|
| 21 | #include <tmacros.h> |
---|
| 22 | |
---|
| 23 | /* functions */ |
---|
| 24 | |
---|
| 25 | rtems_task Init( |
---|
| 26 | rtems_task_argument argument |
---|
| 27 | ); |
---|
| 28 | |
---|
| 29 | rtems_extension Fatal_extension( |
---|
| 30 | uint32_t source, |
---|
[f0157b8] | 31 | bool is_internal, |
---|
[5fdb1e7b] | 32 | uint32_t error |
---|
| 33 | ); |
---|
| 34 | |
---|
| 35 | /* need prototypes */ |
---|
| 36 | |
---|
| 37 | #include "testcase.h" |
---|
| 38 | |
---|
| 39 | /* configuration information */ |
---|
| 40 | |
---|
| 41 | extern rtems_extensions_table initial_extensions; |
---|
| 42 | |
---|
| 43 | #define CONFIGURE_INITIAL_EXTENSIONS \ |
---|
| 44 | { \ |
---|
| 45 | NULL, /* create */ \ |
---|
| 46 | NULL, /* start */ \ |
---|
| 47 | NULL, /* restart */ \ |
---|
| 48 | NULL, /* delete */ \ |
---|
| 49 | NULL, /* switch */ \ |
---|
| 50 | NULL, /* begin */ \ |
---|
| 51 | NULL, /* exitted */ \ |
---|
| 52 | Fatal_extension /* fatal */ \ |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | /* extra parameters may be in testcase.h */ |
---|
| 56 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
| 57 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
| 58 | |
---|
| 59 | /* always need an Init task, some cases need more tasks */ |
---|
| 60 | #ifndef SPFATAL_TEST_CASE_EXTRA_TASKS |
---|
| 61 | #define SPFATAL_TEST_CASE_EXTRA_TASKS 0 |
---|
| 62 | #endif |
---|
| 63 | #define CONFIGURE_MAXIMUM_TASKS \ |
---|
| 64 | (SPFATAL_TEST_CASE_EXTRA_TASKS + 1) |
---|
| 65 | |
---|
| 66 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
| 67 | |
---|
| 68 | #include <rtems/confdefs.h> |
---|
| 69 | |
---|
| 70 | /* global variables */ |
---|
| 71 | |
---|
| 72 | /* end of include file */ |
---|