1 | -- |
---|
2 | -- MPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 6 of the RTEMS |
---|
7 | -- Multiprocessor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-2011. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- |
---|
16 | -- The license and distribution terms for this file may in |
---|
17 | -- the file LICENSE in this distribution or at |
---|
18 | -- http://www.rtems.org/license/LICENSE. |
---|
19 | -- |
---|
20 | |
---|
21 | with RTEMS; |
---|
22 | with RTEMS.EVENT; |
---|
23 | with RTEMS.TASKS; |
---|
24 | |
---|
25 | package MPTEST is |
---|
26 | |
---|
27 | -- |
---|
28 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
29 | -- by this test. |
---|
30 | -- |
---|
31 | |
---|
32 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
33 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
34 | |
---|
35 | -- |
---|
36 | -- These arrays contain the IDs and NAMEs of all RTEMS timers created |
---|
37 | -- by this test. |
---|
38 | -- |
---|
39 | |
---|
40 | TIMER_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
41 | TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
42 | |
---|
43 | -- |
---|
44 | -- This variable is set when the test should stop executing. |
---|
45 | -- |
---|
46 | STOP_TEST : BOOLEAN; |
---|
47 | |
---|
48 | -- |
---|
49 | -- This variable contains the ID of the remote task with which this |
---|
50 | -- test interacts. |
---|
51 | -- |
---|
52 | |
---|
53 | REMOTE_TID : RTEMS.ID; |
---|
54 | |
---|
55 | -- |
---|
56 | -- This variable contains the node on which the remote task with which |
---|
57 | -- this test interacts resides. |
---|
58 | -- |
---|
59 | |
---|
60 | REMOTE_NODE : RTEMS.UNSIGNED32; |
---|
61 | |
---|
62 | -- |
---|
63 | -- The number of signals to process per dot printed out. |
---|
64 | -- |
---|
65 | |
---|
66 | MAXIMUM_DOTS : constant RTEMS.UNSIGNED32 := 25; |
---|
67 | |
---|
68 | -- |
---|
69 | -- The following is a table of the event sets which consist of |
---|
70 | -- a single event. This test cycles through all of these |
---|
71 | -- events. |
---|
72 | -- |
---|
73 | |
---|
74 | EVENT_SET_TABLE : constant array ( 0 .. 30 ) of RTEMS.EVENT_SET := ( |
---|
75 | RTEMS.EVENT_0, |
---|
76 | RTEMS.EVENT_1, |
---|
77 | RTEMS.EVENT_2, |
---|
78 | RTEMS.EVENT_3, |
---|
79 | RTEMS.EVENT_4, |
---|
80 | RTEMS.EVENT_5, |
---|
81 | RTEMS.EVENT_6, |
---|
82 | RTEMS.EVENT_7, |
---|
83 | RTEMS.EVENT_8, |
---|
84 | RTEMS.EVENT_9, |
---|
85 | RTEMS.EVENT_10, |
---|
86 | RTEMS.EVENT_11, |
---|
87 | RTEMS.EVENT_12, |
---|
88 | RTEMS.EVENT_13, |
---|
89 | RTEMS.EVENT_14, |
---|
90 | RTEMS.EVENT_15, |
---|
91 | RTEMS.EVENT_16, |
---|
92 | RTEMS.EVENT_17, |
---|
93 | RTEMS.EVENT_18, |
---|
94 | RTEMS.EVENT_19, |
---|
95 | RTEMS.EVENT_20, |
---|
96 | RTEMS.EVENT_21, |
---|
97 | RTEMS.EVENT_22, |
---|
98 | RTEMS.EVENT_23, |
---|
99 | RTEMS.EVENT_24, |
---|
100 | RTEMS.EVENT_25, |
---|
101 | RTEMS.EVENT_26, |
---|
102 | RTEMS.EVENT_27, |
---|
103 | RTEMS.EVENT_28, |
---|
104 | RTEMS.EVENT_29, |
---|
105 | RTEMS.EVENT_30 |
---|
106 | ); |
---|
107 | |
---|
108 | -- |
---|
109 | -- INIT |
---|
110 | -- |
---|
111 | -- DESCRIPTION: |
---|
112 | -- |
---|
113 | -- This RTEMS task initializes the application. |
---|
114 | -- |
---|
115 | |
---|
116 | procedure INIT ( |
---|
117 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
118 | ); |
---|
119 | pragma Convention (C, INIT); |
---|
120 | |
---|
121 | -- |
---|
122 | -- STOP_TEST_TSR |
---|
123 | -- |
---|
124 | -- DESCRIPTION: |
---|
125 | -- |
---|
126 | -- This subprogram is a TSR which sets the "stop test" flag. |
---|
127 | -- |
---|
128 | |
---|
129 | procedure STOP_TEST_TSR ( |
---|
130 | IGNORED1 : in RTEMS.ID; |
---|
131 | IGNORED2 : in RTEMS.ADDRESS |
---|
132 | ); |
---|
133 | pragma Convention (C, STOP_TEST_TSR); |
---|
134 | |
---|
135 | -- |
---|
136 | -- TEST_TASK |
---|
137 | -- |
---|
138 | -- DESCRIPTION: |
---|
139 | -- |
---|
140 | -- This is the body of the RTEMS tasks which constitute this test. |
---|
141 | -- |
---|
142 | |
---|
143 | procedure TEST_TASK ( |
---|
144 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
145 | ); |
---|
146 | pragma Convention (C, TEST_TASK); |
---|
147 | |
---|
148 | end MPTEST; |
---|