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-2009. |
---|
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.org/license/LICENSE. |
---|
12 | */ |
---|
13 | |
---|
14 | /* |
---|
15 | * Some of the fatal error cases require the ability to peek inside RTEMS |
---|
16 | */ |
---|
17 | |
---|
18 | #define TESTS_USE_PRINTK |
---|
19 | #include "tmacros.h" |
---|
20 | |
---|
21 | #include <rtems.h> |
---|
22 | |
---|
23 | /* functions */ |
---|
24 | |
---|
25 | rtems_task Init( |
---|
26 | rtems_task_argument argument |
---|
27 | ); |
---|
28 | |
---|
29 | void Fatal_extension( |
---|
30 | rtems_fatal_source source, |
---|
31 | bool is_internal, |
---|
32 | rtems_fatal_code error |
---|
33 | ); |
---|
34 | |
---|
35 | void Put_Error( |
---|
36 | uint32_t source, |
---|
37 | uint32_t error |
---|
38 | ); |
---|
39 | |
---|
40 | void Put_Source( rtems_fatal_source source ); |
---|
41 | |
---|
42 | void force_error(void); |
---|
43 | |
---|
44 | /* need some prototypes for test cases */ |
---|
45 | |
---|
46 | rtems_device_driver consume_semaphores_initialize( |
---|
47 | rtems_device_major_number major RTEMS_UNUSED, |
---|
48 | rtems_device_minor_number minor RTEMS_UNUSED, |
---|
49 | void *pargp RTEMS_UNUSED |
---|
50 | ); |
---|
51 | |
---|
52 | #define CONSUME_SEMAPHORE_DRIVERS \ |
---|
53 | { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL } |
---|
54 | |
---|
55 | #include "testcase.h" |
---|
56 | |
---|
57 | /* configuration information */ |
---|
58 | |
---|
59 | extern rtems_extensions_table initial_extensions; |
---|
60 | |
---|
61 | #define CONFIGURE_INITIAL_EXTENSIONS \ |
---|
62 | { \ |
---|
63 | NULL, /* create */ \ |
---|
64 | NULL, /* start */ \ |
---|
65 | NULL, /* restart */ \ |
---|
66 | NULL, /* delete */ \ |
---|
67 | NULL, /* switch */ \ |
---|
68 | NULL, /* begin */ \ |
---|
69 | NULL, /* exitted */ \ |
---|
70 | Fatal_extension /* fatal */ \ |
---|
71 | }, \ |
---|
72 | RTEMS_TEST_INITIAL_EXTENSION |
---|
73 | |
---|
74 | /* extra parameters may be in testcase.h */ |
---|
75 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
76 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
77 | |
---|
78 | /* always need an Init task, some cases need more tasks */ |
---|
79 | #ifndef SPFATAL_TEST_CASE_EXTRA_TASKS |
---|
80 | #define SPFATAL_TEST_CASE_EXTRA_TASKS 0 |
---|
81 | #endif |
---|
82 | #define CONFIGURE_MAXIMUM_TASKS \ |
---|
83 | (SPFATAL_TEST_CASE_EXTRA_TASKS + 1) |
---|
84 | |
---|
85 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
86 | |
---|
87 | #include <rtems/confdefs.h> |
---|
88 | |
---|
89 | /* global variables */ |
---|
90 | |
---|
91 | /* end of include file */ |
---|