source: rtems/c/src/ada-tests/mptests/mp13/mptest.ads @ 6d4e604b

4.104.114.84.95
Last change on this file since 6d4e604b was 6d4e604b, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/97 at 20:19:03

Initial revision

  • Property mode set to 100644
File size: 5.9 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 13 of the RTEMS
7--  Multiprocessor Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
14--  On-Line Applications Research Corporation (OAR).
15--  All rights assigned to U.S. Government, 1994.
16--
17--  This material may be reproduced by or for the U.S. Government pursuant
18--  to the copyright license under the clause at DFARS 252.227-7013.  This
19--  notice must appear in all copies of this file and its derivatives.
20--
21--  mptest.ads,v 1.3 1995/07/12 19:40:20 joel Exp
22--
23
24with CLOCK_DRIVER;
25with BSP_MPCI;
26with RTEMS;
27
28package MPTEST is
29
30--
31--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
32--  by this test.
33--
34
35   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
36   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
37
38--
39--  These arrays contain the IDs and NAMEs of all RTEMS message
40--  queues created by this test.
41--
42
43   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
44   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
45
46--
47--  These arrays contain the IDs and NAMEs of all RTEMS semaphore
48--  created by this test.
49--
50
51   SEMAPHORE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
52   SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
53
54--
55--  This variable contains the ID of the remote task with which this
56--  test interacts.
57--
58
59   REMOTE_TID  : RTEMS.ID;
60
61--
62--  This variable contains the node on which the remote task with which
63--  this test interacts resides.
64--
65
66   REMOTE_NODE : RTEMS.UNSIGNED32;
67
68--
69--  INIT
70--
71--  DESCRIPTION:
72--
73--  This RTEMS task initializes the application.
74--
75
76   procedure INIT (
77      ARGUMENT : in     RTEMS.TASK_ARGUMENT
78   );
79
80--
81--  TEST_TASK_1
82--
83--  DESCRIPTION:
84--
85--  This is the body of one of the RTEMS tasks which constitute this test.
86--
87
88   procedure TEST_TASK_1 (
89      ARGUMENT : in     RTEMS.TASK_ARGUMENT
90   );
91
92--
93--  TEST_TASK_2 
94--
95--  DESCRIPTION:
96--
97--  This is the body of one of the RTEMS tasks which constitute this test.
98--
99 
100   procedure TEST_TASK_2 (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104--
105--  This is the Driver Address Table for this test.
106--
107
108   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
109   (1=>
110      (
111        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
112        RTEMS.NO_DRIVER_ENTRY,                       -- Open
113        RTEMS.NO_DRIVER_ENTRY,                       -- Close
114        RTEMS.NO_DRIVER_ENTRY,                       -- Read
115        RTEMS.NO_DRIVER_ENTRY,                       -- Write
116        RTEMS.NO_DRIVER_ENTRY                        -- Control
117      )
118   );
119
120--
121--  This is the Initialization Tasks Table for this test.
122--
123
124   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
125   (1=>
126     (
127       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
128       2048,                                          -- stack size
129       1,                                             -- priority
130       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
131       MPTEST.INIT'ACCESS,                            -- entry point
132       RTEMS.NO_PREEMPT,                              -- initial mode
133       0                                              -- argument list
134     )
135   );
136
137----------------------------------------------------------------------------
138----------------------------------------------------------------------------
139--                             BEGIN SUBPACKAGE                           --
140----------------------------------------------------------------------------
141----------------------------------------------------------------------------
142
143   --
144   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
145   --
146   --  DESCRIPTION:
147   --
148   --  This package is the specification for the subpackage
149   --  which will define the per node configuration parameters.
150   --
151   
152   package PER_NODE_CONFIGURATION is
153
154   --
155   --  LOCAL_NODE_NUMBER
156   --
157   --  DESCRIPTION:
158   --
159   --  This function returns the node number for this node.
160   --
161
162      function LOCAL_NODE_NUMBER
163      return RTEMS.UNSIGNED32;
164 
165      pragma INLINE ( LOCAL_NODE_NUMBER );
166
167   end PER_NODE_CONFIGURATION;
168 
169----------------------------------------------------------------------------
170----------------------------------------------------------------------------
171--                              END SUBPACKAGE                            --
172----------------------------------------------------------------------------
173----------------------------------------------------------------------------
174
175--
176--  This is the Multiprocessor Configuration Table for this test.
177--
178
179   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
180      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
181      2,                         -- maximum # nodes in system
182      32,                        -- maximum # global objects
183      32                         -- maximum # proxies
184    );
185
186--
187--  This is the Configuration Table for this test.
188--
189
190   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
191      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
192      64 * 1024,                 -- executive RAM size
193      10,                        -- maximum # tasks
194      0,                         -- maximum # timers
195      1,                         -- maximum # semaphores
196      1,                         -- maximum # message queues
197      0,                         -- maximum # messages
198      0,                         -- maximum # partitions
199      0,                         -- maximum # regions
200      0,                         -- maximum # dp memory areas
201      0,                         -- maximum # periods
202      0,                         -- maximum # user extensions
203      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
204      50                         -- # ticks in a timeslice
205  );
206
207end MPTEST;
Note: See TracBrowser for help on using the repository browser.