source: rtems/c/src/ada-tests/samples/base_mp/mptest.ads @ b83fd620

4.104.114.84.95
Last change on this file since b83fd620 was b83fd620, checked in by Joel Sherrill <joel.sherrill@…>, on 08/30/02 at 12:09:48

2002-08-30 Joel Sherrill <joel@…>

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