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