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-2011. |
---|
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 | |
---|
21 | with RTEMS; |
---|
22 | with RTEMS.TASKS; |
---|
23 | |
---|
24 | package MPTEST is |
---|
25 | |
---|
26 | -- |
---|
27 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
28 | -- by this test. |
---|
29 | -- |
---|
30 | |
---|
31 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
32 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
33 | |
---|
34 | -- |
---|
35 | -- These arrays contain the IDs and NAMEs of all RTEMS timers created |
---|
36 | -- by this test. |
---|
37 | -- |
---|
38 | |
---|
39 | TIMER_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
40 | TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
41 | |
---|
42 | -- |
---|
43 | -- This variable contains the ID of the remote task with which this |
---|
44 | -- test interacts. |
---|
45 | -- |
---|
46 | |
---|
47 | REMOTE_TID : RTEMS.ID; |
---|
48 | |
---|
49 | -- |
---|
50 | -- This variable contains the node on which the remote task with which |
---|
51 | -- this test interacts resides. |
---|
52 | -- |
---|
53 | |
---|
54 | REMOTE_NODE : RTEMS.UNSIGNED32; |
---|
55 | |
---|
56 | -- |
---|
57 | -- INIT |
---|
58 | -- |
---|
59 | -- DESCRIPTION: |
---|
60 | -- |
---|
61 | -- This RTEMS task initializes the application. |
---|
62 | -- |
---|
63 | |
---|
64 | procedure INIT ( |
---|
65 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
66 | ); |
---|
67 | pragma Convention (C, INIT); |
---|
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 | pragma Convention (C, DELAYED_SEND_EVENT); |
---|
83 | |
---|
84 | -- |
---|
85 | -- TEST_TASK |
---|
86 | -- |
---|
87 | -- DESCRIPTION: |
---|
88 | -- |
---|
89 | -- This is the body of the RTEMS tasks which constitute this test. |
---|
90 | -- |
---|
91 | |
---|
92 | procedure TEST_TASK ( |
---|
93 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
94 | ); |
---|
95 | pragma Convention (C, TEST_TASK); |
---|
96 | |
---|
97 | -- |
---|
98 | -- TEST_TASK_SUPPORT |
---|
99 | -- |
---|
100 | -- DESCRIPTION: |
---|
101 | -- |
---|
102 | -- This subprogram performs the bulk of the test. Based on the NODE |
---|
103 | -- specified, this subprogram loops suspending/resuming a remote task |
---|
104 | -- or waiting for itself to be suspended/resumed. |
---|
105 | -- |
---|
106 | |
---|
107 | procedure TEST_TASK_SUPPORT ( |
---|
108 | NODE : in RTEMS.UNSIGNED32 |
---|
109 | ); |
---|
110 | |
---|
111 | end MPTEST; |
---|