Changeset 23848bbd in rtems for c/src/ada-tests/mptests/mp10
- Timestamp:
- Oct 1, 2007, 10:58:09 PM (14 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- d731ccc7
- Parents:
- f10fe707
- Location:
- c/src/ada-tests/mptests/mp10
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ada-tests/mptests/mp10/mptest.adb
rf10fe707 r23848bbd 29 29 package body MPTEST is 30 30 31 package body PER_NODE_CONFIGURATION is separate;32 33 31 --PAGE 34 32 -- … … 45 43 TEXT_IO.PUT( "*** TEST 10 -- NODE " ); 46 44 UNSIGNED32_IO.PUT( 47 MPTEST.MULTIPROCESSING_CONFIGURATION.NODE,45 TEST_SUPPORT.NODE, 48 46 WIDTH => 1 49 47 ); … … 59 57 MPTEST.SEMAPHORE_NAME( 1 ) := RTEMS.BUILD_NAME( 'S', 'E', 'M', ' ' ); 60 58 61 if MPTEST.MULTIPROCESSING_CONFIGURATION.NODE = 1 then59 if TEST_SUPPORT.NODE = 1 then 62 60 63 61 TEXT_IO.PUT_LINE( "Creating Message Queue (Global)" ); -
c/src/ada-tests/mptests/mp10/mptest.ads
rf10fe707 r23848bbd 117 117 ); 118 118 119 --120 -- This is the Driver Address Table for this test.121 --122 123 DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=124 (1=>125 (126 CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization127 RTEMS.NO_DRIVER_ENTRY, -- Open128 RTEMS.NO_DRIVER_ENTRY, -- Close129 RTEMS.NO_DRIVER_ENTRY, -- Read130 RTEMS.NO_DRIVER_ENTRY, -- Write131 RTEMS.NO_DRIVER_ENTRY -- Control132 )133 );134 135 --136 -- This is the Initialization Tasks Table for this test.137 --138 139 INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=140 (1=>141 (142 RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name143 2048, -- stack size144 1, -- priority145 RTEMS.DEFAULT_ATTRIBUTES, -- attributes146 MPTEST.INIT'ACCESS, -- entry point147 RTEMS.NO_PREEMPT, -- initial mode148 0 -- argument list149 )150 );151 152 ----------------------------------------------------------------------------153 ----------------------------------------------------------------------------154 -- BEGIN SUBPACKAGE --155 ----------------------------------------------------------------------------156 ----------------------------------------------------------------------------157 158 --159 -- MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION160 --161 -- DESCRIPTION:162 --163 -- This package is the specification for the subpackage164 -- which will define the per node configuration parameters.165 --166 167 package PER_NODE_CONFIGURATION is168 169 --170 -- LOCAL_NODE_NUMBER171 --172 -- DESCRIPTION:173 --174 -- This function returns the node number for this node.175 --176 177 function LOCAL_NODE_NUMBER178 return RTEMS.UNSIGNED32;179 180 pragma INLINE ( LOCAL_NODE_NUMBER );181 182 end PER_NODE_CONFIGURATION;183 184 ----------------------------------------------------------------------------185 ----------------------------------------------------------------------------186 -- END SUBPACKAGE --187 ----------------------------------------------------------------------------188 ----------------------------------------------------------------------------189 190 --191 -- This is the Multiprocessor Configuration Table for this test.192 --193 194 MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := (195 MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER,196 2, -- maximum # nodes in system197 32, -- maximum # global objects198 32 -- maximum # proxies199 );200 201 --202 -- This is the Configuration Table for this test.203 --204 205 CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (206 RTEMS.NULL_ADDRESS, -- will be replaced by BSP207 64 * 1024, -- executive RAM size208 10, -- maximum # tasks209 0, -- maximum # timers210 1, -- maximum # semaphores211 1, -- maximum # message queues212 0, -- maximum # messages213 0, -- maximum # partitions214 0, -- maximum # regions215 0, -- maximum # dp memory areas216 0, -- maximum # periods217 0, -- maximum # user extensions218 RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick219 50 -- # ticks in a timeslice220 );221 222 119 end MPTEST;
Note: See TracChangeset
for help on using the changeset viewer.