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