source: rtems/c/src/ada-tests/mptests/mp12/mptest.ads @ d0f426a1

4.104.114.84.95
Last change on this file since d0f426a1 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.4 KB
Line 
1--
2--  MPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 12 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 semaphore
39--  created by this test.
40--
41
42   PARTITION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
43   PARTITION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
44
45--
46--  This variable contains the ID of the remote task with which this
47--  test interacts.
48--
49
50   REMOTE_TID  : RTEMS.ID;
51
52--
53--  This variable contains the node on which the remote task with which
54--  this test interacts resides.
55--
56
57   REMOTE_NODE : RTEMS.UNSIGNED32;
58
59--
60--  INIT
61--
62--  DESCRIPTION:
63--
64--  This RTEMS task initializes the application.
65--
66
67   procedure INIT (
68      ARGUMENT : in     RTEMS.TASK_ARGUMENT
69   );
70
71--
72--  This is the area used for the partition.
73--
74
75   PARTITION_AREA :
76      array ( RTEMS.UNSIGNED32 range 0 .. 1023 ) of RTEMS.UNSIGNED8;
77   for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
78
79--
80--  This is the Driver Address Table for this test.
81--
82
83   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
84   (1=>
85      (
86        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
87        RTEMS.NO_DRIVER_ENTRY,                       -- Open
88        RTEMS.NO_DRIVER_ENTRY,                       -- Close
89        RTEMS.NO_DRIVER_ENTRY,                       -- Read
90        RTEMS.NO_DRIVER_ENTRY,                       -- Write
91        RTEMS.NO_DRIVER_ENTRY                        -- Control
92      )
93   );
94
95--
96--  This is the Initialization Tasks Table for this test.
97--
98
99   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
100   (1=>
101     (
102       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
103       2048,                                          -- stack size
104       1,                                             -- priority
105       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
106       MPTEST.INIT'ACCESS,                            -- entry point
107       RTEMS.NO_PREEMPT,                              -- initial mode
108       0                                              -- argument list
109     )
110   );
111
112----------------------------------------------------------------------------
113----------------------------------------------------------------------------
114--                             BEGIN SUBPACKAGE                           --
115----------------------------------------------------------------------------
116----------------------------------------------------------------------------
117
118   --
119   --  MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION
120   --
121   --  DESCRIPTION:
122   --
123   --  This package is the specification for the subpackage
124   --  which will define the per node configuration parameters.
125   --
126   
127   package PER_NODE_CONFIGURATION is
128
129   --
130   --  LOCAL_NODE_NUMBER
131   --
132   --  DESCRIPTION:
133   --
134   --  This function returns the node number for this node.
135   --
136
137      function LOCAL_NODE_NUMBER
138      return RTEMS.UNSIGNED32;
139 
140      pragma INLINE ( LOCAL_NODE_NUMBER );
141
142   end PER_NODE_CONFIGURATION;
143 
144----------------------------------------------------------------------------
145----------------------------------------------------------------------------
146--                              END SUBPACKAGE                            --
147----------------------------------------------------------------------------
148----------------------------------------------------------------------------
149
150--
151--  This is the Multiprocessor Configuration Table for this test.
152--
153
154   MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (
155      MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,
156      2,                         -- maximum # nodes in system
157      32,                        -- maximum # global objects
158      32                         -- maximum # proxies
159    );
160
161--
162--  This is the Configuration Table for this test.
163--
164
165   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
166      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
167      64 * 1024,                 -- executive RAM size
168      10,                        -- maximum # tasks
169      0,                         -- maximum # timers
170      0,                         -- maximum # semaphores
171      0,                         -- maximum # message queues
172      0,                         -- maximum # messages
173      1,                         -- maximum # partitions
174      0,                         -- maximum # regions
175      0,                         -- maximum # dp memory areas
176      0,                         -- maximum # periods
177      0,                         -- maximum # user extensions
178      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
179      50                         -- # ticks in a timeslice
180  );
181
182end MPTEST;
Note: See TracBrowser for help on using the repository browser.