[6d4e604b] | 1 | -- |
---|
| 2 | -- MPTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 2 of the RTEMS |
---|
| 7 | -- Multiprocessor Test Suite. |
---|
| 8 | -- |
---|
| 9 | -- DEPENDENCIES: |
---|
| 10 | -- |
---|
| 11 | -- |
---|
| 12 | -- |
---|
| 13 | -- COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 14 | -- On-Line Applications Research Corporation (OAR). |
---|
| 15 | -- All rights assigned to U.S. Government, 1994. |
---|
| 16 | -- |
---|
| 17 | -- This material may be reproduced by or for the U.S. Government pursuant |
---|
| 18 | -- to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 19 | -- notice must appear in all copies of this file and its derivatives. |
---|
| 20 | -- |
---|
| 21 | -- mptest.ads,v 1.3 1995/07/12 19:38:42 joel Exp |
---|
| 22 | -- |
---|
| 23 | |
---|
| 24 | with CLOCK_DRIVER; |
---|
| 25 | with BSP_MPCI; |
---|
| 26 | with RTEMS; |
---|
| 27 | |
---|
| 28 | package MPTEST is |
---|
| 29 | |
---|
| 30 | -- |
---|
| 31 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
| 32 | -- by this test. |
---|
| 33 | -- |
---|
| 34 | |
---|
| 35 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
| 36 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
| 37 | |
---|
| 38 | -- |
---|
| 39 | -- INIT |
---|
| 40 | -- |
---|
| 41 | -- DESCRIPTION: |
---|
| 42 | -- |
---|
| 43 | -- This RTEMS task initializes the application. |
---|
| 44 | -- |
---|
| 45 | |
---|
| 46 | procedure INIT ( |
---|
| 47 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 48 | ); |
---|
| 49 | |
---|
| 50 | -- |
---|
| 51 | -- TEST_TASK |
---|
| 52 | -- |
---|
| 53 | -- DESCRIPTION: |
---|
| 54 | -- |
---|
| 55 | -- This is the body of the RTEMS tasks which constitute this test. |
---|
| 56 | -- |
---|
| 57 | |
---|
| 58 | procedure TEST_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.DEFAULT_ATTRIBUTES, -- 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 | 32, -- maximum # global objects |
---|
| 141 | 32 -- 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 | |
---|
| 165 | end MPTEST; |
---|