Back to home page

LXR

 
 

    


Warning, /testsuites/ada/tmtests/tm21/tmtest.ads is written in an unsupported language. File is not indexed.

0001 -- SPDX-License-Identifier: BSD-2-Clause
0002 
0003 --
0004 --  TMTEST / SPECIFICATION
0005 --
0006 --  DESCRIPTION:
0007 --
0008 --  This package is the specification for Test 21 of the RTEMS
0009 --  Timing Test Suite.
0010 --
0011 --  DEPENDENCIES: 
0012 --
0013 --  
0014 --
0015 --  COPYRIGHT (c) 1989-2011.
0016 --  On-Line Applications Research Corporation (OAR).
0017 --
0018 --  Redistribution and use in source and binary forms, with or without
0019 --  modification, are permitted provided that the following conditions
0020 --  are met:
0021 --  1. Redistributions of source code must retain the above copyright
0022 --     notice, this list of conditions and the following disclaimer.
0023 --  2. Redistributions in binary form must reproduce the above copyright
0024 --     notice, this list of conditions and the following disclaimer in the
0025 --     documentation and/or other materials provided with the distribution.
0026 --
0027 --  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0028 --  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0029 --  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0030 --  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0031 --  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0032 --  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0033 --  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0034 --  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0035 --  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0036 --  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0037 --  POSSIBILITY OF SUCH DAMAGE.
0038 --
0039 
0040 with RTEMS;
0041 with RTEMS.TASKS;
0042 with SYSTEM;
0043 with System.Storage_Elements;
0044 
0045 package TMTEST is
0046 
0047 --
0048 --  These arrays contain the IDs and NAMEs of all RTEMS tasks created
0049 --  by this test.
0050 --
0051 
0052    TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
0053    TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
0054 
0055 --
0056 --  The following variable is set to the execution time returned
0057 --  by the timer.
0058 --
0059 
0060    END_TIME  : RTEMS.UNSIGNED32;
0061 
0062 --
0063 --  The following area defines a memory area to be used as the
0064 --  internal address space of the port.
0065 -- 
0066 
0067    INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
0068       System.Storage_Elements.To_Address(16#00001000#);
0069 
0070    INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
0071       of RTEMS.UNSIGNED8;
0072    for INTERNAL_PORT_AREA'Address use INTERNAL_PORT_AREA_ADDRESS;
0073 
0074 --
0075 --  The following area defines a memory area to be used as the
0076 --  external address space of the port.
0077 -- 
0078 
0079    EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
0080       System.Storage_Elements.To_Address(16#00002000#);
0081 
0082    EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
0083       of RTEMS.UNSIGNED8;
0084    for EXTERNAL_PORT_AREA'Address use EXTERNAL_PORT_AREA_ADDRESS;
0085 
0086 --
0087 --  The following area defines a memory area to be used as the
0088 --  memory space for a partition.
0089 -- 
0090 
0091    PARTITION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 )
0092       of RTEMS.UNSIGNED8;
0093    for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
0094 
0095 --
0096 --  These following are the ID and NAME of the RTEMS region created
0097 --  by this test.
0098 --
0099 
0100    REGION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 )
0101       of RTEMS.UNSIGNED8;
0102    for REGION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
0103 
0104 --
0105 --  INIT
0106 --
0107 --  DESCRIPTION:
0108 --
0109 --  This RTEMS task initializes the application.
0110 --
0111 
0112    procedure INIT (
0113       ARGUMENT : in     RTEMS.TASKS.ARGUMENT
0114    );
0115    pragma Convention (C, INIT);
0116 
0117 --
0118 --  TASK_1
0119 --
0120 --  DESCRIPTION:
0121 --
0122 --  This RTEMS task is responsible for measuring and reporting the
0123 --  following directive execution times:
0124 --
0125 --    + TASK_IDENT
0126 --    + MESSAGE_QUEUE_IDENT
0127 --    + SEMAPHORE_IDENT
0128 --    + PARTITION_IDENT
0129 --    + REGION_IDENT
0130 --    + PORT_IDENT
0131 --    + TIMER_IDENT
0132 --    + RATE_MONOTONIC_IDENT
0133 --
0134 
0135    procedure TASK_1 (
0136       ARGUMENT : in     RTEMS.TASKS.ARGUMENT
0137    );
0138    pragma Convention (C, TASK_1);
0139 
0140 end TMTEST;