source:
rtems/c/src/ada-tests/mptests/mp03/mptest.ads
@
d731ccc7
Last change on this file since d731ccc7 was 23848bbd, checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/07 at 22:58:09 | |
---|---|
|
|
File size: 2.1 KB |
Line | |
---|---|
1 | -- |
2 | -- MPTEST / SPECIFICATION |
3 | -- |
4 | -- DESCRIPTION: |
5 | -- |
6 | -- This package is the specification for Test 3 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 | |
23 | with RTEMS; |
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 contains the ID of the remote task with which this |
45 | -- test interacts. |
46 | -- |
47 | |
48 | REMOTE_TID : RTEMS.ID; |
49 | |
50 | -- |
51 | -- This variable contains the node on which the remote task with which |
52 | -- this test interacts resides. |
53 | -- |
54 | |
55 | REMOTE_NODE : RTEMS.UNSIGNED32; |
56 | |
57 | -- |
58 | -- INIT |
59 | -- |
60 | -- DESCRIPTION: |
61 | -- |
62 | -- This RTEMS task initializes the application. |
63 | -- |
64 | |
65 | procedure INIT ( |
66 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
67 | ); |
68 | |
69 | -- |
70 | -- DELAYED_SEND_EVENT |
71 | -- |
72 | -- DESCRIPTION: |
73 | -- |
74 | -- This subprogram is a timer service routine which sends an |
75 | -- event set to a waiting task. |
76 | -- |
77 | |
78 | procedure DELAYED_SEND_EVENT ( |
79 | IGNORED_ID : in RTEMS.ID; |
80 | IGNORED_ADDRESS : in RTEMS.ADDRESS |
81 | ); |
82 | |
83 | -- |
84 | -- TEST_TASK |
85 | -- |
86 | -- DESCRIPTION: |
87 | -- |
88 | -- This is the body of the RTEMS tasks which constitute this test. |
89 | -- |
90 | |
91 | procedure TEST_TASK ( |
92 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
93 | ); |
94 | |
95 | -- |
96 | -- TEST_TASK_SUPPORT |
97 | -- |
98 | -- DESCRIPTION: |
99 | -- |
100 | -- This subprogram performs the bulk of the test. Based on the NODE |
101 | -- specified, this subprogram loops suspending/resuming a remote task |
102 | -- or waiting for itself to be suspended/resumed. |
103 | -- |
104 | |
105 | procedure TEST_TASK_SUPPORT ( |
106 | NODE : in RTEMS.UNSIGNED32 |
107 | ); |
108 | |
109 | end MPTEST; |
Note: See TracBrowser
for help on using the repository browser.