1 | -- |
---|
2 | -- SPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 16 of the RTEMS |
---|
7 | -- Single Processor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-1997. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- Copyright assigned to U.S. Government, 1994. |
---|
16 | -- |
---|
17 | -- The license and distribution terms for this file may in |
---|
18 | -- the file LICENSE in this distribution or at |
---|
19 | -- http://www.OARcorp.com/rtems/license.html. |
---|
20 | -- |
---|
21 | -- $Id$ |
---|
22 | -- |
---|
23 | |
---|
24 | with RTEMS; |
---|
25 | |
---|
26 | package SPTEST is |
---|
27 | |
---|
28 | -- |
---|
29 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
30 | -- by this test. |
---|
31 | -- |
---|
32 | |
---|
33 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.ID; |
---|
34 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.NAME; |
---|
35 | |
---|
36 | -- |
---|
37 | -- These arrays contain the IDs and NAMEs of all RTEMS regions created |
---|
38 | -- by this test. |
---|
39 | -- |
---|
40 | |
---|
41 | REGION_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
42 | REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
43 | |
---|
44 | -- |
---|
45 | -- The following constant defines the priority of most of the |
---|
46 | -- RTEMS tasks in this test. This allows one of the tasks to |
---|
47 | -- easily set itself to a higher priority than the rest. |
---|
48 | -- |
---|
49 | |
---|
50 | BASE_PRIORITY : constant RTEMS.TASK_PRIORITY := 140; |
---|
51 | |
---|
52 | -- |
---|
53 | -- These arrays define the memory areas used for the regions in |
---|
54 | -- this test. |
---|
55 | -- |
---|
56 | |
---|
57 | AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8; |
---|
58 | for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
59 | |
---|
60 | AREA_2 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8; |
---|
61 | for AREA_2'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
62 | |
---|
63 | AREA_3 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8; |
---|
64 | for AREA_3'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
65 | |
---|
66 | -- |
---|
67 | -- INIT |
---|
68 | -- |
---|
69 | -- DESCRIPTION: |
---|
70 | -- |
---|
71 | -- This RTEMS task initializes the application. |
---|
72 | -- |
---|
73 | |
---|
74 | procedure INIT ( |
---|
75 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
76 | ); |
---|
77 | |
---|
78 | -- |
---|
79 | -- PUT_ADDRESS_FROM_AREA_1 |
---|
80 | -- |
---|
81 | -- DESCRIPTION: |
---|
82 | -- |
---|
83 | -- This subprogram prints the offset of the address TO_BE_PRINTED |
---|
84 | -- from the first byte of AREA_1. |
---|
85 | -- |
---|
86 | -- NOTE: |
---|
87 | -- |
---|
88 | -- This subprogram is used because the actual address of AREA_1 |
---|
89 | -- varies based upon the size of the executable, the target board, |
---|
90 | -- and the target processor. |
---|
91 | -- |
---|
92 | |
---|
93 | procedure PUT_ADDRESS_FROM_AREA_1 ( |
---|
94 | TO_BE_PRINTED : in RTEMS.ADDRESS |
---|
95 | ); |
---|
96 | |
---|
97 | -- |
---|
98 | -- PUT_ADDRESS_FROM_AREA_2 |
---|
99 | -- |
---|
100 | -- DESCRIPTION: |
---|
101 | -- |
---|
102 | -- This subprogram prints the offset of the address TO_BE_PRINTED |
---|
103 | -- from the first byte of AREA_2. |
---|
104 | -- |
---|
105 | -- NOTE: |
---|
106 | -- |
---|
107 | -- This subprogram is used because the actual address of AREA_2 |
---|
108 | -- varies based upon the size of the executable, the target board, |
---|
109 | -- and the target processor. |
---|
110 | -- |
---|
111 | |
---|
112 | procedure PUT_ADDRESS_FROM_AREA_2 ( |
---|
113 | TO_BE_PRINTED : in RTEMS.ADDRESS |
---|
114 | ); |
---|
115 | |
---|
116 | -- |
---|
117 | -- PUT_ADDRESS_FROM_AREA_3 |
---|
118 | -- |
---|
119 | -- DESCRIPTION: |
---|
120 | -- |
---|
121 | -- This subprogram prints the offset of the address TO_BE_PRINTED |
---|
122 | -- from the first byte of AREA_3. |
---|
123 | -- |
---|
124 | -- NOTE: |
---|
125 | -- |
---|
126 | -- This subprogram is used because the actual address of AREA_3 |
---|
127 | -- varies based upon the size of the executable, the target board, |
---|
128 | -- and the target processor. |
---|
129 | -- |
---|
130 | |
---|
131 | procedure PUT_ADDRESS_FROM_AREA_3 ( |
---|
132 | TO_BE_PRINTED : in RTEMS.ADDRESS |
---|
133 | ); |
---|
134 | |
---|
135 | -- |
---|
136 | -- TASK_1 |
---|
137 | -- |
---|
138 | -- DESCRIPTION: |
---|
139 | -- |
---|
140 | -- This RTEMS task tests the Region Manager. |
---|
141 | -- |
---|
142 | |
---|
143 | procedure TASK_1 ( |
---|
144 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
145 | ); |
---|
146 | |
---|
147 | -- |
---|
148 | -- TASK_2 |
---|
149 | -- |
---|
150 | -- DESCRIPTION: |
---|
151 | -- |
---|
152 | -- This RTEMS task tests the Region Manager. |
---|
153 | -- |
---|
154 | |
---|
155 | procedure TASK_2 ( |
---|
156 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
157 | ); |
---|
158 | |
---|
159 | -- |
---|
160 | -- TASK_3 |
---|
161 | -- |
---|
162 | -- DESCRIPTION: |
---|
163 | -- |
---|
164 | -- This RTEMS task tests the Region Manager. |
---|
165 | -- |
---|
166 | |
---|
167 | procedure TASK_3 ( |
---|
168 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
169 | ); |
---|
170 | |
---|
171 | -- |
---|
172 | -- TASK_4 |
---|
173 | -- |
---|
174 | -- DESCRIPTION: |
---|
175 | -- |
---|
176 | -- This RTEMS task tests the Region Manager. |
---|
177 | -- |
---|
178 | |
---|
179 | procedure TASK_4 ( |
---|
180 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
181 | ); |
---|
182 | |
---|
183 | -- |
---|
184 | -- TASK_5 |
---|
185 | -- |
---|
186 | -- DESCRIPTION: |
---|
187 | -- |
---|
188 | -- This RTEMS task tests the Region Manager. |
---|
189 | -- |
---|
190 | |
---|
191 | procedure TASK_5 ( |
---|
192 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
193 | ); |
---|
194 | |
---|
195 | end SPTEST; |
---|