source: rtems/c/src/ada-tests/mptests/mp10/mptest.ads @ a846105

4.104.114.84.95
Last change on this file since a846105 was 190f5c23, checked in by Joel Sherrill <joel.sherrill@…>, on 08/26/02 at 14:27:21

2002-08-26 Joel Sherrill <joel@…>

  • 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.adb, mptests/mp14/mptest.ads: Per PR274, identify the need for the BSP_MPCI package. It was a trivial dependency and eliminated.
  • Property mode set to 100644
File size: 6.1 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 10 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--  Copyright assigned to U.S. Government, 1994.
16--
17--  The license and distribution terms for this file may in
18--  the file LICENSE in this distribution or at
19--  http://www.OARcorp.com/rtems/license.html.
20--
21--  $Id$
22--
23
24with RTEMS;
25
26package MPTEST is
27
28--
29--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
30--  by this test.
31--
32
33   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
34   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
35
36--
37--  These arrays contain the IDs and NAMEs of all RTEMS message
38--  queues created by this test.
39--
40
41   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
42   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
43
44--
45--  These arrays contain the IDs and NAMEs of all RTEMS semaphore
46--  created by this test.
47--
48
49   SEMAPHORE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
50   SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
51
52--
53--  This variable contains the ID of the remote task with which this
54--  test interacts.
55--
56
57   REMOTE_TID  : RTEMS.ID;
58
59--
60--  This variable contains the node on which the remote task with which
61--  this test interacts resides.
62--
63
64   REMOTE_NODE : RTEMS.UNSIGNED32;
65
66--
67--  The number of events to process per dot printed out.
68--
69
70   PER_DOT : constant RTEMS.UNSIGNED32 := 100;
71
72--
73--  INIT
74--
75--  DESCRIPTION:
76--
77--  This RTEMS task initializes the application.
78--
79
80   procedure INIT (
81      ARGUMENT : in     RTEMS.TASK_ARGUMENT
82   );
83
84--
85--  TEST_TASK_1
86--
87--  DESCRIPTION:
88--
89--  This is the body of one of the RTEMS tasks which constitute this test.
90--
91
92   procedure TEST_TASK_1 (
93      ARGUMENT : in     RTEMS.TASK_ARGUMENT
94   );
95
96--
97--  TEST_TASK_2 
98--
99--  DESCRIPTION:
100--
101--  This is the body of one of the RTEMS tasks which constitute this test.
102--
103 
104   procedure TEST_TASK_2 (
105      ARGUMENT : in     RTEMS.TASK_ARGUMENT
106   );
107
108--
109--  TEST_TASK_3 
110--
111--  DESCRIPTION:
112--
113--  This is the body of one of the RTEMS tasks which constitute this test.
114--
115 
116   procedure TEST_TASK_3 (
117      RESTART : in     RTEMS.TASK_ARGUMENT
118   );
119
120--
121--  This is the Driver Address Table for this test.
122--
123
124   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
125   (1=>
126      (
127        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
128        RTEMS.NO_DRIVER_ENTRY,                       -- Open
129        RTEMS.NO_DRIVER_ENTRY,                       -- Close
130        RTEMS.NO_DRIVER_ENTRY,                       -- Read
131        RTEMS.NO_DRIVER_ENTRY,                       -- Write
132        RTEMS.NO_DRIVER_ENTRY                        -- Control
133      )
134   );
135
136--
137--  This is the Initialization Tasks Table for this test.
138--
139
140   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
141   (1=>
142     (
143       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
144       2048,                                          -- stack size
145       1,                                             -- priority
146       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
147       MPTEST.INIT'ACCESS,                            -- entry point
148       RTEMS.NO_PREEMPT,                              -- initial mode
149       0                                              -- argument list
150     )
151   );
152
153----------------------------------------------------------------------------
154----------------------------------------------------------------------------
155--                             BEGIN SUBPACKAGE                           --
156----------------------------------------------------------------------------
157----------------------------------------------------------------------------
158
159   --
160   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
161   --
162   --  DESCRIPTION:
163   --
164   --  This package is the specification for the subpackage
165   --  which will define the per node configuration parameters.
166   --
167   
168   package PER_NODE_CONFIGURATION is
169
170   --
171   --  LOCAL_NODE_NUMBER
172   --
173   --  DESCRIPTION:
174   --
175   --  This function returns the node number for this node.
176   --
177
178      function LOCAL_NODE_NUMBER
179      return RTEMS.UNSIGNED32;
180 
181      pragma INLINE ( LOCAL_NODE_NUMBER );
182
183   end PER_NODE_CONFIGURATION;
184 
185----------------------------------------------------------------------------
186----------------------------------------------------------------------------
187--                              END SUBPACKAGE                            --
188----------------------------------------------------------------------------
189----------------------------------------------------------------------------
190
191--
192--  This is the Multiprocessor Configuration Table for this test.
193--
194
195   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
196      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
197      2,                         -- maximum # nodes in system
198      32,                        -- maximum # global objects
199      32                         -- maximum # proxies
200    );
201
202--
203--  This is the Configuration Table for this test.
204--
205
206   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
207      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
208      64 * 1024,                 -- executive RAM size
209      10,                        -- maximum # tasks
210      0,                         -- maximum # timers
211      1,                         -- maximum # semaphores
212      1,                         -- maximum # message queues
213      0,                         -- maximum # messages
214      0,                         -- maximum # partitions
215      0,                         -- maximum # regions
216      0,                         -- maximum # dp memory areas
217      0,                         -- maximum # periods
218      0,                         -- maximum # user extensions
219      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
220      50                         -- # ticks in a timeslice
221  );
222
223end MPTEST;
Note: See TracBrowser for help on using the repository browser.