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

4.104.114.95
Last change on this file since d43dd82 was d43dd82, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 11, 2008 at 8:12:52 PM

2008-03-11 Joel Sherrill <joel.sherrill@…>

  • mptests/mp01/mptest.ads, mptests/mp02/mptest.ads, mptests/mp03/mptest.ads, mptests/mp04/mptest.ads, mptests/mp05/mptest.ads, mptests/mp06/mptest.ads, mptests/mp07/mptest.ads, mptests/mp08/mptest.ads, mptests/mp09/mptest.ads, mptests/mp10/mptest.ads, mptests/mp11/mptest.ads, mptests/mp12/mptest.ads, mptests/mp13/mptest.ads, mptests/mp14/mptest.ads, samples/base_mp/mptest.ads, samples/base_sp/sptest.ads, samples/hello/sptest.ads, samples/nsecs/sptest.ads, samples/ticker/sptest.ads, sptests/sp01/sptest.ads, sptests/sp02/sptest.ads, sptests/sp03/sptest.ads, sptests/sp04/sptest.ads, sptests/sp05/sptest.ads, sptests/sp06/sptest.ads, sptests/sp07/sptest.ads, sptests/sp08/sptest.ads, sptests/sp09/sptest.ads, sptests/sp11/sptest.ads, sptests/sp12/sptest.ads, sptests/sp13/sptest.ads, sptests/sp14/sptest.ads, sptests/sp15/sptest.ads, sptests/sp16/sptest.ads, sptests/sp17/sptest.ads, sptests/sp19/sptest.ads, sptests/sp20/sptest.ads, sptests/sp22/sptest.ads, sptests/sp23/sptest.ads, sptests/sp24/sptest.ads, sptests/sp25/sptest.ads, sptests/spname01/spname01.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/tmtest.ads, tmtests/tm03/tmtest.ads, tmtests/tm04/tmtest.ads, tmtests/tm05/tmtest.ads, tmtests/tm06/tmtest.ads, tmtests/tm07/tmtest.ads, tmtests/tm08/tmtest.ads, tmtests/tm09/tmtest.ads, tmtests/tm10/tmtest.ads, tmtests/tm11/tmtest.ads, tmtests/tm12/tmtest.ads, tmtests/tm13/tmtest.ads, tmtests/tm14/tmtest.ads, tmtests/tm15/tmtest.ads, tmtests/tm16/tmtest.ads, tmtests/tm17/tmtest.ads, tmtests/tm18/tmtest.ads, tmtests/tm19/tmtest.ads, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/tmtest.ads, tmtests/tm22/tmtest.ads, tmtests/tm23/tmtest.ads, tmtests/tm24/tmtest.ads, tmtests/tm25/tmtest.ads, tmtests/tm28/tmtest.ads, tmtests/tm29/tmtest.ads, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/tmtest.ads: Added pragma Convention C as required by gcc > 4.3.
  • Property mode set to 100644
File size: 5.6 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   pragma Convention (C, INIT);
181
182--
183--  TEST_TASK
184--
185--  DESCRIPTION:
186--
187--  This is one of the test tasks.
188--
189
190   procedure TEST_TASK (
191      ARGUMENT : in     RTEMS.TASK_ARGUMENT
192   );
193   pragma Convention (C, TEST_TASK);
194
195--
196--  DELAYED_EVENTS_TASK
197--
198--  DESCRIPTION:
199--
200--  This is one of the test tasks.
201--
202 
203   procedure DELAYED_EVENTS_TASK ( 
204      ARGUMENT : in     RTEMS.TASK_ARGUMENT
205   );
206   pragma Convention (C, DELAYED_EVENTS_TASK);
207
208--
209--  MESSAGE_QUEUE_TASK
210--
211--  DESCRIPTION:
212--
213--  This is one of the test tasks.
214--
215 
216   procedure MESSAGE_QUEUE_TASK ( 
217      INDEX : in     RTEMS.TASK_ARGUMENT
218   );
219   pragma Convention (C, MESSAGE_QUEUE_TASK);
220
221--
222--  PARTITION_TASK
223--
224--  DESCRIPTION:
225--
226--  This is one of the test tasks.
227--
228 
229   procedure PARTITION_TASK ( 
230      IGNORED : in     RTEMS.TASK_ARGUMENT
231   );
232   pragma Convention (C, PARTITION_TASK);
233
234--
235--  SEMAPHORE_TASK
236--
237--  DESCRIPTION:
238--
239--  This is one of the test tasks.
240--
241 
242   procedure SEMAPHORE_TASK ( 
243      ARGUMENT : in     RTEMS.TASK_ARGUMENT
244   );
245   pragma Convention (C, SEMAPHORE_TASK);
246
247end MPTEST;
Note: See TracBrowser for help on using the repository browser.