[6d4e604b] | 1 | -- |
---|
| 2 | -- MPTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 13 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 message |
---|
| 36 | -- queues created by this test. |
---|
| 37 | -- |
---|
| 38 | |
---|
| 39 | QUEUE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
| 40 | QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
| 41 | |
---|
| 42 | -- |
---|
| 43 | -- These arrays contain the IDs and NAMEs of all RTEMS semaphore |
---|
| 44 | -- created by this test. |
---|
| 45 | -- |
---|
| 46 | |
---|
| 47 | SEMAPHORE_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
| 48 | SEMAPHORE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
| 49 | |
---|
| 50 | -- |
---|
| 51 | -- This variable contains the ID of the remote task with which this |
---|
| 52 | -- test interacts. |
---|
| 53 | -- |
---|
| 54 | |
---|
| 55 | REMOTE_TID : RTEMS.ID; |
---|
| 56 | |
---|
| 57 | -- |
---|
| 58 | -- This variable contains the node on which the remote task with which |
---|
| 59 | -- this test interacts resides. |
---|
| 60 | -- |
---|
| 61 | |
---|
| 62 | REMOTE_NODE : RTEMS.UNSIGNED32; |
---|
| 63 | |
---|
| 64 | -- |
---|
| 65 | -- INIT |
---|
| 66 | -- |
---|
| 67 | -- DESCRIPTION: |
---|
| 68 | -- |
---|
| 69 | -- This RTEMS task initializes the application. |
---|
| 70 | -- |
---|
| 71 | |
---|
| 72 | procedure INIT ( |
---|
[3c4d8cd1] | 73 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 74 | ); |
---|
[d43dd82] | 75 | pragma Convention (C, INIT); |
---|
[6d4e604b] | 76 | |
---|
| 77 | -- |
---|
| 78 | -- TEST_TASK_1 |
---|
| 79 | -- |
---|
| 80 | -- DESCRIPTION: |
---|
| 81 | -- |
---|
| 82 | -- This is the body of one of the RTEMS tasks which constitute this test. |
---|
| 83 | -- |
---|
| 84 | |
---|
| 85 | procedure TEST_TASK_1 ( |
---|
[3c4d8cd1] | 86 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 87 | ); |
---|
[d43dd82] | 88 | pragma Convention (C, TEST_TASK_1); |
---|
[6d4e604b] | 89 | |
---|
| 90 | -- |
---|
| 91 | -- TEST_TASK_2 |
---|
| 92 | -- |
---|
| 93 | -- DESCRIPTION: |
---|
| 94 | -- |
---|
| 95 | -- This is the body of one of the RTEMS tasks which constitute this test. |
---|
| 96 | -- |
---|
| 97 | |
---|
| 98 | procedure TEST_TASK_2 ( |
---|
[3c4d8cd1] | 99 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 100 | ); |
---|
[d43dd82] | 101 | pragma Convention (C, TEST_TASK_2); |
---|
[6d4e604b] | 102 | |
---|
| 103 | end MPTEST; |
---|