[6d4e604b] | 1 | -- |
---|
| 2 | -- SPTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 25 of the RTEMS |
---|
| 7 | -- Single Processor 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 SPTEST 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 .. 2 ) of RTEMS.ID; |
---|
| 32 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
| 33 | |
---|
| 34 | -- |
---|
| 35 | -- These arrays contain the IDs and NAMEs of all RTEMS regions created |
---|
| 36 | -- by this test. |
---|
| 37 | -- |
---|
| 38 | |
---|
| 39 | REGION_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; |
---|
| 40 | REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; |
---|
| 41 | |
---|
| 42 | -- |
---|
| 43 | -- The following constant defines the priority of most of the |
---|
| 44 | -- RTEMS tasks in this test. This allows one of the tasks to |
---|
| 45 | -- easily set itself to a higher priority than the rest. |
---|
| 46 | -- |
---|
| 47 | |
---|
[3c4d8cd1] | 48 | BASE_PRIORITY : constant RTEMS.TASKS.PRIORITY := 140; |
---|
[6d4e604b] | 49 | |
---|
| 50 | -- |
---|
| 51 | -- These arrays define the memory areas used for the regions in |
---|
| 52 | -- this test. |
---|
| 53 | -- |
---|
| 54 | |
---|
| 55 | AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 64000 ) of RTEMS.UNSIGNED8; |
---|
| 56 | for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
| 57 | |
---|
| 58 | -- |
---|
| 59 | -- INIT |
---|
| 60 | -- |
---|
| 61 | -- DESCRIPTION: |
---|
| 62 | -- |
---|
| 63 | -- This RTEMS task initializes the application. |
---|
| 64 | -- |
---|
| 65 | |
---|
| 66 | procedure INIT ( |
---|
[3c4d8cd1] | 67 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 68 | ); |
---|
[d43dd82] | 69 | pragma Convention (C, INIT); |
---|
[6d4e604b] | 70 | |
---|
| 71 | -- |
---|
| 72 | -- PUT_ADDRESS_FROM_AREA_1 |
---|
| 73 | -- |
---|
| 74 | -- DESCRIPTION: |
---|
| 75 | -- |
---|
| 76 | -- This subprogram prints the offset of the address TO_BE_PRINTED |
---|
| 77 | -- from the first byte of AREA_1. |
---|
| 78 | -- |
---|
| 79 | -- NOTE: |
---|
| 80 | -- |
---|
| 81 | -- This subprogram is used because the actual address of AREA_1 |
---|
| 82 | -- varies based upon the size of the executable, the target board, |
---|
| 83 | -- and the target processor. |
---|
| 84 | -- |
---|
| 85 | |
---|
| 86 | procedure PUT_ADDRESS_FROM_AREA_1 ( |
---|
| 87 | TO_BE_PRINTED : in RTEMS.ADDRESS |
---|
| 88 | ); |
---|
| 89 | |
---|
| 90 | -- |
---|
| 91 | -- TASK_1 |
---|
| 92 | -- |
---|
| 93 | -- DESCRIPTION: |
---|
| 94 | -- |
---|
| 95 | -- This RTEMS task tests the Region Manager. |
---|
| 96 | -- |
---|
| 97 | |
---|
| 98 | procedure TASK_1 ( |
---|
[3c4d8cd1] | 99 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
[6d4e604b] | 100 | ); |
---|
[d43dd82] | 101 | pragma Convention (C, TASK_1); |
---|
[6d4e604b] | 102 | |
---|
| 103 | end SPTEST; |
---|