[6d4e604b] | 1 | -- |
---|
| 2 | -- MPTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 8 of the RTEMS |
---|
| 7 | -- Multiprocessor Test Suite. |
---|
| 8 | -- |
---|
| 9 | -- DEPENDENCIES: |
---|
| 10 | -- |
---|
| 11 | -- |
---|
| 12 | -- |
---|
[3c4d8cd1] | 13 | -- COPYRIGHT (c) 1989-2011. |
---|
[6d4e604b] | 14 | -- On-Line Applications Research Corporation (OAR). |
---|
| 15 | -- |
---|
[bf9ae83] | 16 | -- The license and distribution terms for this file may in |
---|
| 17 | -- the file LICENSE in this distribution or at |
---|
[35e4691] | 18 | -- http://www.rtems.com/license/LICENSE. |
---|
[6d4e604b] | 19 | -- |
---|
| 20 | |
---|
| 21 | with RTEMS; |
---|
[3c4d8cd1] | 22 | with RTEMS.TASKS; |
---|
[6d4e604b] | 23 | |
---|
| 24 | package MPTEST is |
---|
| 25 | |
---|
| 26 | -- |
---|
| 27 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
| 28 | -- by this test. |
---|
| 29 | -- |
---|
| 30 | |
---|
| 31 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
| 32 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
| 33 | |
---|
| 34 | -- |
---|
| 35 | -- These arrays contain the IDs and NAMEs of all RTEMS semaphores created |
---|
| 36 | -- by this test. |
---|
| 37 | -- |
---|
| 38 | |
---|
| 39 | SEMAPHORE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
| 40 | SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
| 41 | |
---|
| 42 | -- |
---|
| 43 | -- This variable contains the ID of the remote task with which this |
---|
| 44 | -- test interacts. |
---|
| 45 | -- |
---|
| 46 | |
---|
| 47 | REMOTE_TID : RTEMS.ID; |
---|
| 48 | |
---|
| 49 | -- |
---|
| 50 | -- This variable contains the node on which the remote task with which |
---|
| 51 | -- this test interacts resides. |
---|
| 52 | -- |
---|
| 53 | |
---|
| 54 | REMOTE_NODE : RTEMS.UNSIGNED32; |
---|
| 55 | |
---|
| 56 | -- |
---|
| 57 | -- The number of events to process per dot printed out. |
---|
| 58 | -- |
---|
| 59 | |
---|
| 60 | PER_DOT : constant RTEMS.UNSIGNED32 := 100; |
---|
| 61 | |
---|
| 62 | -- |
---|
| 63 | -- INIT |
---|
| 64 | -- |
---|
| 65 | -- DESCRIPTION: |
---|
| 66 | -- |
---|
| 67 | -- This RTEMS task initializes the application. |
---|
| 68 | -- |
---|
| 69 | |
---|
| 70 | procedure INIT ( |
---|
[3c4d8cd1] | 71 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 72 | ); |
---|
[d43dd82] | 73 | pragma Convention (C, INIT); |
---|
[6d4e604b] | 74 | |
---|
| 75 | -- |
---|
| 76 | -- TEST_TASK |
---|
| 77 | -- |
---|
| 78 | -- DESCRIPTION: |
---|
| 79 | -- |
---|
| 80 | -- This is the body of the RTEMS tasks which constitute this test. |
---|
| 81 | -- |
---|
| 82 | |
---|
| 83 | procedure TEST_TASK ( |
---|
[3c4d8cd1] | 84 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 85 | ); |
---|
[d43dd82] | 86 | pragma Convention (C, TEST_TASK); |
---|
[6d4e604b] | 87 | |
---|
| 88 | end MPTEST; |
---|