source:
rtems/testsuites/sptests/spfatal_support/system.h
@
b84f1fdc
Last change on this file since b84f1fdc was b84f1fdc, checked in by Joel Sherrill <joel.sherrill@…>, on 05/10/09 at 14:39:46 | |
---|---|
|
|
File size: 1.8 KB |
Line | |
---|---|
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.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, |
31 | bool is_internal, |
32 | uint32_t error |
33 | ); |
34 | |
35 | void Put_Error( |
36 | uint32_t source, |
37 | uint32_t error |
38 | ); |
39 | |
40 | void Put_Source( |
41 | uint32_t source |
42 | ); |
43 | |
44 | void force_error(void); |
45 | |
46 | /* need some prototypes for test cases */ |
47 | |
48 | #include "testcase.h" |
49 | |
50 | /* configuration information */ |
51 | |
52 | extern rtems_extensions_table initial_extensions; |
53 | |
54 | #define CONFIGURE_INITIAL_EXTENSIONS \ |
55 | { \ |
56 | NULL, /* create */ \ |
57 | NULL, /* start */ \ |
58 | NULL, /* restart */ \ |
59 | NULL, /* delete */ \ |
60 | NULL, /* switch */ \ |
61 | NULL, /* begin */ \ |
62 | NULL, /* exitted */ \ |
63 | Fatal_extension /* fatal */ \ |
64 | } |
65 | |
66 | /* extra parameters may be in testcase.h */ |
67 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
68 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
69 | |
70 | /* always need an Init task, some cases need more tasks */ |
71 | #ifndef SPFATAL_TEST_CASE_EXTRA_TASKS |
72 | #define SPFATAL_TEST_CASE_EXTRA_TASKS 0 |
73 | #endif |
74 | #define CONFIGURE_MAXIMUM_TASKS \ |
75 | (SPFATAL_TEST_CASE_EXTRA_TASKS + 1) |
76 | |
77 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
78 | |
79 | #include <rtems/confdefs.h> |
80 | |
81 | /* global variables */ |
82 | |
83 | /* end of include file */ |
Note: See TracBrowser
for help on using the repository browser.