source: rtems/c/src/ada-tests/sptests/sp09/sptest.ads @ 948a069

Last change on this file since 948a069 was f6bcc8f5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 13:25:16

2003-09-04 Joel Sherrill <joel@…>

  • samples/base_sp/base_sp.adb, samples/base_sp/config.h, samples/base_sp/sptest.adb, samples/base_sp/sptest.ads, samples/hello/config.h, samples/hello/hello.adb, samples/hello/sptest.adb, samples/hello/sptest.ads, samples/ticker/config.h, samples/ticker/sptest.adb, samples/ticker/sptest.ads, samples/ticker/ticker.adb, sptests/sp01/config.h, sptests/sp01/sp01.adb, sptests/sp01/sptest.adb, sptests/sp01/sptest.ads, sptests/sp02/config.h, sptests/sp02/sp02.adb, sptests/sp02/sptest.adb, sptests/sp02/sptest.ads, sptests/sp03/config.h, sptests/sp03/sp03.adb, sptests/sp03/sptest.adb, sptests/sp03/sptest.ads, sptests/sp04/config.h, sptests/sp04/sp04.adb, sptests/sp04/sptest.adb, sptests/sp04/sptest.ads, sptests/sp05/config.h, sptests/sp05/sp05.adb, sptests/sp05/sptest.adb, sptests/sp05/sptest.ads, sptests/sp06/config.h, sptests/sp06/sp06.adb, sptests/sp06/sptest.adb, sptests/sp06/sptest.ads, sptests/sp07/config.h, sptests/sp07/sp07.adb, sptests/sp07/sptest.adb, sptests/sp07/sptest.ads, sptests/sp08/config.h, sptests/sp08/sp08.adb, sptests/sp08/sptest.adb, sptests/sp08/sptest.ads, sptests/sp09/config.h, sptests/sp09/sp09.adb, sptests/sp09/sptest.adb, sptests/sp09/sptest.ads, sptests/sp11/config.h, sptests/sp11/sp11.adb, sptests/sp11/sptest.adb, sptests/sp11/sptest.ads, sptests/sp12/config.h, sptests/sp12/sp12.adb, sptests/sp12/sptest.adb, sptests/sp12/sptest.ads, sptests/sp13/config.h, sptests/sp13/sp13.adb, sptests/sp13/sptest.adb, sptests/sp13/sptest.ads, sptests/sp14/config.h, sptests/sp14/sp14.adb, sptests/sp14/sptest.adb, sptests/sp14/sptest.ads, sptests/sp15/config.h, sptests/sp15/sp15.adb, sptests/sp15/sptest.adb, sptests/sp15/sptest.ads, sptests/sp16/config.h, sptests/sp16/sp16.adb, sptests/sp16/sptest.adb, sptests/sp16/sptest.ads, sptests/sp17/config.h, sptests/sp17/sp17.adb, sptests/sp17/sptest.adb, sptests/sp17/sptest.ads, sptests/sp19/config.h, sptests/sp19/sp19.adb, sptests/sp19/sptest.adp, sptests/sp19/sptest.ads, sptests/sp20/config.h, sptests/sp20/sp20.adb, sptests/sp20/sptest.adb, sptests/sp20/sptest.ads, sptests/sp21/config.h, sptests/sp21/sp21.adb, sptests/sp21/sptest.adb, sptests/sp21/sptest.ads, sptests/sp22/config.h, sptests/sp22/sp22.adb, sptests/sp22/sptest.adb, sptests/sp22/sptest.ads, sptests/sp23/config.h, sptests/sp23/sp23.adb, sptests/sp23/sptest.adb, sptests/sp23/sptest.ads, sptests/sp24/config.h, sptests/sp24/sp24.adb, sptests/sp24/sptest.adb, sptests/sp24/sptest.ads, sptests/sp25/config.h, sptests/sp25/sp25.adb, sptests/sp25/sptest.adb, sptests/sp25/sptest.ads, sptests/spsize/spsize.adb, sptests/spsize/sptest.adb, sptests/spsize/sptest.ads, support/address_io.adb, support/address_io.ads, support/float_io.ads, support/fp.inc, support/init.c, support/integer.inc, support/rtems_calling_overhead.ads, support/status_io.ads, support/test_support.adb, support/test_support.ads, support/time_test_support.adb, support/time_test_support.ads, support/timer_driver.adb, support/timer_driver.ads, support/unsigned32_io.ads, tmtests/tm01/config.h, tmtests/tm01/tm01.adb, tmtests/tm01/tmtest.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/config.h, tmtests/tm02/tm02.adb, tmtests/tm02/tmtest.adb, tmtests/tm02/tmtest.ads, tmtests/tm03/config.h, tmtests/tm03/tm03.adb, tmtests/tm03/tmtest.adb, tmtests/tm03/tmtest.ads, tmtests/tm04/config.h, tmtests/tm04/tm04.adb, tmtests/tm04/tmtest.adb, tmtests/tm04/tmtest.ads, tmtests/tm05/config.h, tmtests/tm05/tm05.adb, tmtests/tm05/tmtest.adb, tmtests/tm05/tmtest.ads, tmtests/tm06/config.h, tmtests/tm06/tm06.adb, tmtests/tm06/tmtest.adb, tmtests/tm06/tmtest.ads, tmtests/tm07/config.h, tmtests/tm07/tm07.adb, tmtests/tm07/tmtest.adb, tmtests/tm07/tmtest.ads, tmtests/tm08/config.h, tmtests/tm08/tm08.adb, tmtests/tm08/tmtest.adb, tmtests/tm08/tmtest.ads, tmtests/tm09/config.h, tmtests/tm09/tm09.adb, tmtests/tm09/tmtest.adb, tmtests/tm09/tmtest.ads, tmtests/tm10/config.h, tmtests/tm10/tm10.adb, tmtests/tm10/tmtest.adb, tmtests/tm10/tmtest.ads, tmtests/tm11/config.h, tmtests/tm11/tm11.adb, tmtests/tm11/tmtest.adb, tmtests/tm11/tmtest.ads, tmtests/tm12/config.h, tmtests/tm12/tm12.adb, tmtests/tm12/tmtest.adb, tmtests/tm12/tmtest.ads, tmtests/tm13/config.h, tmtests/tm13/tm13.adb, tmtests/tm13/tmtest.adb, tmtests/tm13/tmtest.ads, tmtests/tm14/config.h, tmtests/tm14/tm14.adb, tmtests/tm14/tmtest.adb, tmtests/tm14/tmtest.ads, tmtests/tm15/config.h, tmtests/tm15/tm15.adb, tmtests/tm15/tmtest.adb, tmtests/tm15/tmtest.ads, tmtests/tm16/config.h, tmtests/tm16/tm16.adb, tmtests/tm16/tmtest.adb, tmtests/tm16/tmtest.ads, tmtests/tm17/config.h, tmtests/tm17/tm17.adb, tmtests/tm17/tmtest.adb, tmtests/tm17/tmtest.ads, tmtests/tm18/config.h, tmtests/tm18/tm18.adb, tmtests/tm18/tmtest.adb, tmtests/tm18/tmtest.ads, tmtests/tm19/config.h, tmtests/tm19/tm19.adb, tmtests/tm19/tmtest.adb, tmtests/tm19/tmtest.ads, tmtests/tm20/config.h, tmtests/tm20/tm20.adb, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/config.h, tmtests/tm21/tm21.adb, tmtests/tm21/tmtest.adb, tmtests/tm21/tmtest.ads, tmtests/tm22/config.h, tmtests/tm22/tm22.adb, tmtests/tm22/tmtest.adb, tmtests/tm22/tmtest.ads, tmtests/tm23/config.h, tmtests/tm23/tm23.adb, tmtests/tm23/tmtest.adb, tmtests/tm23/tmtest.ads, tmtests/tm24/config.h, tmtests/tm24/tm24.adb, tmtests/tm24/tmtest.adb, tmtests/tm24/tmtest.ads, tmtests/tm25/config.h, tmtests/tm25/tm25.adb, tmtests/tm25/tmtest.adb, tmtests/tm25/tmtest.ads, tmtests/tm28/config.h, tmtests/tm28/tm28.adb, tmtests/tm28/tmtest.adb, tmtests/tm28/tmtest.ads, tmtests/tm29/config.h, tmtests/tm29/tm29.adb, tmtests/tm29/tmtest.adb, tmtests/tm29/tmtest.ads, tmtests/tmck/config.h, tmtests/tmck/tmck.adb, tmtests/tmck/tmtest.adb, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/config.h, tmtests/tmoverhd/dummy_rtems.adb, tmtests/tmoverhd/dummy_rtems.ads, tmtests/tmoverhd/tmoverhd.adb, tmtests/tmoverhd/tmtest.adb, tmtests/tmoverhd/tmtest.ads: Removed incorrect statement about copyright assignment.
  • Property mode set to 100644
File size: 8.2 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 9 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--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.OARcorp.com/rtems/license.html.
19--
20--  $Id$
21--
22
23with RTEMS;
24with SYSTEM;
25with System.Storage_Elements;
26
27package SPTEST is
28
29--
30--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
31--  avoids changes to the test.
32--
33
34   type BUFFER is
35      record
36         FIELD1 : RTEMS.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
37         FIELD2 : RTEMS.UNSIGNED32;
38         FIELD3 : RTEMS.UNSIGNED32;
39         FIELD4 : RTEMS.UNSIGNED32;
40      end record;
41
42--
43--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
44--  by this test.
45--
46
47   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 11 ) of RTEMS.ID;
48   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 11 ) of RTEMS.NAME;
49
50--
51--  These arrays contain the IDs and NAMEs of all RTEMS timers created
52--  by this test.
53--
54
55   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID;
56   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME;
57
58--
59--  These arrays contain the IDs and NAMEs of all RTEMS semaphores created
60--  by this test.
61--
62
63   SEMAPHORE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
64   SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
65
66--
67--  These arrays contain the IDs and NAMEs of all RTEMS message queues
68--  created by this test.
69--
70
71   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
72   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
73
74--
75--  These arrays contain the IDs and NAMEs of all RTEMS partitions created
76--  by this test.
77--
78
79   PARTITION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID;
80   PARTITION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME;
81
82--
83--  These arrays contain the IDs and NAMEs of all RTEMS regions created
84--  by this test.
85--
86
87   REGION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID;
88   REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME;
89
90--
91--  These arrays contain the IDs and NAMEs of all RTEMS ports created
92--  by this test.
93--
94
95   PORT_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID;
96   PORT_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME;
97
98--
99--  These arrays contain the IDs and NAMEs of all RTEMS periods created
100--  by this test.
101--
102
103   PERIOD_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID;
104   PERIOD_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME;
105
106--
107--  This variable is used as the output ID on directives which return
108--  an ID but are invoked in a manner which returns a non-SUCCESSFUL
109--  status code.
110--
111
112   JUNK_ID : RTEMS.ID;
113
114--
115--  The following area defines a memory area to be used as the
116--  internal address space of the port.
117--
118
119   INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
120       System.Storage_Elements.To_Address(16#00001000#);
121
122   INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
123      of RTEMS.UNSIGNED8;
124   for INTERNAL_PORT_AREA use at INTERNAL_PORT_AREA_ADDRESS;
125
126--
127--  The following area defines a memory area to be used as the
128--  external address space of the port.
129--
130
131   EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
132       System.Storage_Elements.To_Address(16#00002000#);
133
134   EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
135      of RTEMS.UNSIGNED8;
136   for EXTERNAL_PORT_AREA use at EXTERNAL_PORT_AREA_ADDRESS;
137
138--
139--  The following area defines a memory area to be used as the
140--  memory space for a partition.
141--
142
143   PARTITION_GOOD_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
144      of RTEMS.UNSIGNED8;
145   for PARTITION_GOOD_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
146
147--
148--  The following area defines a memory area to be used as the
149--  memory space for a partition which starts at an invalid address.
150--
151
152   PARTITION_BAD_AREA_ADDRESS : constant System.Address :=
153       System.Storage_Elements.To_Address(16#00000006#);
154
155   PARTITION_BAD_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
156      of RTEMS.UNSIGNED8;
157   for PARTITION_BAD_AREA use at PARTITION_BAD_AREA_ADDRESS;
158
159--
160--  The following area defines a memory area to be used as the
161--  memory space for a region and constants used to define the regions
162--  starting area and length.
163--
164
165   REGION_GOOD_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 4095 )
166      of RTEMS.UNSIGNED32;
167   for REGION_GOOD_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
168
169   REGION_START_OFFSET : constant RTEMS.UNSIGNED32 := 1024;
170   REGION_LENGTH       : constant RTEMS.UNSIGNED32 := 512;
171
172--
173--  The following area defines a memory area to be used as the
174--  memory space for a region which starts at an invalid address.
175--
176
177   REGION_BAD_AREA_ADDRESS : constant System.Address :=
178       System.Storage_Elements.To_Address(16#00000006#);
179
180   REGION_BAD_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
181      of RTEMS.UNSIGNED8;
182   for REGION_BAD_AREA use at REGION_BAD_AREA_ADDRESS;
183
184--
185--  INIT
186--
187--  DESCRIPTION:
188--
189--  This RTEMS task initializes the application.
190--
191
192   procedure INIT (
193      ARGUMENT : in     RTEMS.TASK_ARGUMENT
194   );
195
196--
197--  DELAYED_SUBPROGRAM
198--
199--  DESCRIPTION:
200--
201--  This subprogram is scheduled as a timer service routine.
202--  It performs no actions if it fires.
203--
204
205   procedure DELAYED_SUBPROGRAM (
206      IGNORED_ID      : in     RTEMS.ID; 
207      IGNORED_ADDRESS : in     RTEMS.ADDRESS
208   );
209
210--
211--  TASK_1
212--
213--  DESCRIPTION:
214--
215--  This RTEMS task tests numerous error conditions.
216--
217
218   procedure TASK_1 (
219      ARGUMENT : in     RTEMS.TASK_ARGUMENT
220   );
221
222--
223--  TASK_2
224--
225--  DESCRIPTION:
226--
227--  This RTEMS task tests numerous error conditions.
228--
229
230   procedure TASK_2 (
231      ARGUMENT : in     RTEMS.TASK_ARGUMENT
232   );
233
234--
235--  TASK_3
236--
237--  DESCRIPTION:
238--
239--  This RTEMS task tests numerous error conditions.
240--
241
242   procedure TASK_3 (
243      ARGUMENT : in     RTEMS.TASK_ARGUMENT
244   );
245
246--
247--  TASK_4
248--
249--  DESCRIPTION:
250--
251--  This RTEMS task tests numerous error conditions.
252--
253
254   procedure TASK_4 (
255      ARGUMENT : in     RTEMS.TASK_ARGUMENT
256   );
257
258--
259--  SERVICE_ROUTINE
260--
261--  DESCRIPTION:
262--
263--  This subprogram serves as a dummy ISR which is installed at an
264--  illegal vector number.
265--
266
267   procedure SERVICE_ROUTINE (
268      IGNORED : in     RTEMS.VECTOR_NUMBER
269   );
270
271--
272--  SCREEN_1
273--
274--  DESCRIPTION:
275--
276--  This subprogram processes the a single output screen of this test.
277--
278
279   procedure SCREEN_1;
280
281--
282--  SCREEN_2
283--
284--  DESCRIPTION:
285--
286--  This subprogram processes the a single output screen of this test.
287--
288
289   procedure SCREEN_2;
290
291--
292--  SCREEN_3
293--
294--  DESCRIPTION:
295--
296--  This subprogram processes the a single output screen of this test.
297--
298
299   procedure SCREEN_3;
300
301--
302--  SCREEN_4
303--
304--  DESCRIPTION:
305--
306--  This subprogram processes the a single output screen of this test.
307--
308
309   procedure SCREEN_4;
310
311--
312--  SCREEN_5
313--
314--  DESCRIPTION:
315--
316--  This subprogram processes the a single output screen of this test.
317--
318
319   procedure SCREEN_5;
320
321--
322--  SCREEN_6
323--
324--  DESCRIPTION:
325--
326--  This subprogram processes the a single output screen of this test.
327--
328
329   procedure SCREEN_6;
330
331--
332--  SCREEN_7
333--
334--  DESCRIPTION:
335--
336--  This subprogram processes the a single output screen of this test.
337--
338
339   procedure SCREEN_7;
340
341--
342--  SCREEN_8
343--
344--  DESCRIPTION:
345--
346--  This subprogram processes the a single output screen of this test.
347--
348
349   procedure SCREEN_8;
350
351--
352--  SCREEN_9
353--
354--  DESCRIPTION:
355--
356--  This subprogram processes the a single output screen of this test.
357--
358
359   procedure SCREEN_9;
360
361--
362--  SCREEN_10
363--
364--  DESCRIPTION:
365--
366--  This subprogram processes the a single output screen of this test.
367--
368
369   procedure SCREEN_10;
370
371--
372--  SCREEN_11
373--
374--  DESCRIPTION:
375--
376--  This subprogram processes the a single output screen of this test.
377--
378
379   procedure SCREEN_11;
380
381--
382--  SCREEN_12
383--
384--  DESCRIPTION:
385--
386--  This subprogram processes the a single output screen of this test.
387--
388
389   procedure SCREEN_12;
390
391--
392--  SCREEN_13
393--
394--  DESCRIPTION:
395--
396--  This subprogram processes the a single output screen of this test.
397--
398
399   procedure SCREEN_13;
400
401end SPTEST;
Note: See TracBrowser for help on using the repository browser.