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