source: rtems/c/src/ada-tests/mptests/mp01/mptest.ads @ 7625d9a3

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