source: rtems/c/src/ada-tests/mptests/mp14/mptest.ads @ d731ccc7

4.104.114.95
Last change on this file since d731ccc7 was 23848bbd, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 1, 2007 at 10:58:09 PM

2007-10-01 Joel Sherrill <joel.sherrill@…>

  • mptests/mp01/mptest.adb, mptests/mp01/mptest.ads, mptests/mp01/node1/Makefile.am, mptests/mp02/mptest.adb, mptests/mp02/mptest.ads, mptests/mp03/mptest.adb, mptests/mp03/mptest.ads, mptests/mp04/mptest.adb, mptests/mp04/mptest.ads, mptests/mp05/mptest.adb, mptests/mp05/mptest.ads, mptests/mp06/mptest.adb, mptests/mp06/mptest.ads, mptests/mp07/mptest.adb, mptests/mp07/mptest.ads, mptests/mp08/mptest.adb, mptests/mp08/mptest.ads, mptests/mp09/mptest.adb, mptests/mp09/mptest.ads, mptests/mp10/mptest.adb, mptests/mp10/mptest.ads, mptests/mp11/mptest.adb, mptests/mp11/mptest.ads, mptests/mp12/mptest.adb, mptests/mp12/mptest.ads, mptests/mp13/mptest.adb, mptests/mp13/mptest.ads, mptests/mp14/mptest.adb, mptests/mp14/mptest.ads, support/init.c, support/test_support.adb, support/test_support.ads: Most of single processor Ada tests now build. Some run.
  • Property mode set to 100644
File size: 5.3 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 14 of the RTEMS
7--  Multiprocessor Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
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.com/license/LICENSE.
19--
20--  $Id$
21--
22
23with RTEMS;
24
25package MPTEST is
26
27--
28--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
29--  by this test for passing event sets.
30--
31
32   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
33   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
34--
35--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
36--  by this test for passing event sets.
37--
38
39   EVENT_TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
40   EVENT_TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
41
42--
43--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
44--  by this test for manipulating semaphores.
45--
46
47   SEMAPHORE_TASK_ID   : 
48      array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
49   SEMAPHORE_TASK_NAME : 
50      array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
51
52--
53--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
54--  by this test for passing messages.
55--
56
57   QUEUE_TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
58   QUEUE_TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
59
60--
61--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
62--  by this test for manipulating the global partitions.
63--
64
65   PARTITION_TASK_ID   : 
66      array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
67   PARTITION_TASK_NAME : 
68      array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
69
70--
71--  These arrays contain the IDs and NAMEs of all RTEMS partitions
72--  created by this test.
73--
74
75   PARTITION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
76   PARTITION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
77
78--
79--  These arrays contain the IDs and NAMEs of all RTEMS semaphores
80--  created by this test.
81--
82
83   SEMAPHORE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
84   SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
85
86--
87--  These arrays contain the IDs and NAMEs of all RTEMS message_queues
88--  created by this test.
89--
90
91   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
92   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
93
94--
95--
96--  These arrays contain the IDs and NAMEs of all RTEMS timers
97--  created by this test.
98--
99
100   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
101   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
102
103--
104--  The following are message buffers used to contain the test messages
105--  and pointers to those buffers.
106--
107
108   BUFFER_AREAS : array (  RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.BUFFER;
109   BUFFERS      : array (  RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ADDRESS;
110
111--
112--  This is the area used for the partition.
113--
114
115   PARTITION_AREA : 
116      array ( RTEMS.UNSIGNED32 range 0 .. 16#7FFF# ) of RTEMS.UNSIGNED8;
117   for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
118
119--
120--  The following constants control the flow of "dot" indicators
121--  from the various test componenents.
122--
123
124   EVENT_TASK_DOT_COUNT    : constant RTEMS.UNSIGNED32 := 100;
125   EVENT_SEND_DOT_COUNT    : constant RTEMS.UNSIGNED32 := 100;
126   DELAYED_EVENT_DOT_COUNT : constant RTEMS.UNSIGNED32 := 1000;
127   MESSAGE_DOT_COUNT       : constant RTEMS.UNSIGNED32 := 200;
128   PARTITION_DOT_COUNT     : constant RTEMS.UNSIGNED32 := 200;
129   SEMAPHORE_DOT_COUNT     : constant RTEMS.UNSIGNED32 := 200;
130
131--
132--  These contain the IDs and NAMEs of the RTEMS timers used
133--  by this test to stop.
134--
135 
136   STOP_TIMER_ID   : RTEMS.ID;
137   STOP_TIMER_NAME : RTEMS.NAME;
138 
139--
140--  This variable is set when the test should stop executing.
141--
142
143   STOP_TEST : BOOLEAN;
144 
145--
146--  EXIT_TEST
147--
148--  DESCRIPTION:
149--
150--  This subprogram is invoked to stop this test.
151--
152 
153   procedure EXIT_TEST;
154
155--
156--  DELAYED_SEND_EVENT
157--
158--  DESCRIPTION:
159--
160--  This subprogram is a timer service routine which sends an
161--  event set to a waiting task.
162--
163 
164   procedure DELAYED_SEND_EVENT (
165      TIMER_ID        : in     RTEMS.ID;
166      IGNORED_ADDRESS : in     RTEMS.ADDRESS 
167   );
168
169--
170--  INIT
171--
172--  DESCRIPTION:
173--
174--  This RTEMS task initializes the application.
175--
176
177   procedure INIT (
178      ARGUMENT : in     RTEMS.TASK_ARGUMENT
179   );
180
181--
182--  TEST_TASK
183--
184--  DESCRIPTION:
185--
186--  This is one of the test tasks.
187--
188
189   procedure TEST_TASK (
190      ARGUMENT : in     RTEMS.TASK_ARGUMENT
191   );
192
193--
194--  DELAYED_EVENTS_TASK
195--
196--  DESCRIPTION:
197--
198--  This is one of the test tasks.
199--
200 
201   procedure DELAYED_EVENTS_TASK ( 
202      ARGUMENT : in     RTEMS.TASK_ARGUMENT
203   );
204
205--
206--  MESSAGE_QUEUE_TASK
207--
208--  DESCRIPTION:
209--
210--  This is one of the test tasks.
211--
212 
213   procedure MESSAGE_QUEUE_TASK ( 
214      INDEX : in     RTEMS.TASK_ARGUMENT
215   );
216
217--
218--  PARTITION_TASK
219--
220--  DESCRIPTION:
221--
222--  This is one of the test tasks.
223--
224 
225   procedure PARTITION_TASK ( 
226      IGNORED : in     RTEMS.TASK_ARGUMENT
227   );
228
229--
230--  SEMAPHORE_TASK
231--
232--  DESCRIPTION:
233--
234--  This is one of the test tasks.
235--
236 
237   procedure SEMAPHORE_TASK ( 
238      ARGUMENT : in     RTEMS.TASK_ARGUMENT
239   );
240
241end MPTEST;
Note: See TracBrowser for help on using the repository browser.