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

4.104.114.84.95
Last change on this file since edeed26 was d0f426a1, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 00:34:04

* empty log message *

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