diff options
Diffstat (limited to 'c/src/ada-tests/mptests/mp07')
-rw-r--r-- | c/src/ada-tests/mptests/mp07/mptest.adb | 13 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp07/mptest.ads | 105 |
2 files changed, 6 insertions, 112 deletions
diff --git a/c/src/ada-tests/mptests/mp07/mptest.adb b/c/src/ada-tests/mptests/mp07/mptest.adb index 422ad798a8..fc3bd8570a 100644 --- a/c/src/ada-tests/mptests/mp07/mptest.adb +++ b/c/src/ada-tests/mptests/mp07/mptest.adb @@ -28,8 +28,6 @@ with UNSIGNED32_IO; package body MPTEST is - package body PER_NODE_CONFIGURATION is separate; - --PAGE -- -- INIT @@ -44,7 +42,7 @@ package body MPTEST is TEXT_IO.NEW_LINE( 2 ); TEXT_IO.PUT( "*** TEST 7 -- NODE " ); UNSIGNED32_IO.PUT( - MPTEST.MULTIPROCESSING_CONFIGURATION.NODE, + TEST_SUPPORT.NODE, WIDTH => 1 ); TEXT_IO.PUT_LINE( " ***" ); @@ -54,8 +52,8 @@ package body MPTEST is TEXT_IO.PUT_LINE( "Creating Test_task (Global)" ); RTEMS.TASK_CREATE( - MPTEST.TASK_NAME( MPTEST.MULTIPROCESSING_CONFIGURATION.NODE ), - MPTEST.MULTIPROCESSING_CONFIGURATION.NODE, + MPTEST.TASK_NAME( TEST_SUPPORT.NODE ), + TEST_SUPPORT.NODE, 2048, RTEMS.TIMESLICE, RTEMS.GLOBAL, @@ -111,14 +109,13 @@ package body MPTEST is procedure TEST_TASK ( ARGUMENT : in RTEMS.TASK_ARGUMENT ) is - COUNT : RTEMS.UNSIGNED32; EVENT_OUT : RTEMS.EVENT_SET; STATUS : RTEMS.STATUS_CODES; begin MPTEST.STOP_TEST := FALSE; - if MPTEST.MULTIPROCESSING_CONFIGURATION.NODE = 1 then + if TEST_SUPPORT.NODE = 1 then MPTEST.REMOTE_NODE := 2; else MPTEST.REMOTE_NODE := 1; @@ -140,7 +137,7 @@ package body MPTEST is end loop; - if MPTEST.MULTIPROCESSING_CONFIGURATION.NODE = 1 then + if TEST_SUPPORT.NODE = 1 then TEXT_IO.PUT_LINE( "Sending first event to remote task" ); RTEMS.EVENT_SEND( diff --git a/c/src/ada-tests/mptests/mp07/mptest.ads b/c/src/ada-tests/mptests/mp07/mptest.ads index 206cae953f..85f4c38f87 100644 --- a/c/src/ada-tests/mptests/mp07/mptest.ads +++ b/c/src/ada-tests/mptests/mp07/mptest.ads @@ -43,7 +43,7 @@ package MPTEST is -- -- This variable is set when the test should stop executing. -- - STOP_TEST : RTEMS.BOOLEAN; + STOP_TEST : BOOLEAN; -- -- This variable contains the ID of the remote task with which this @@ -102,107 +102,4 @@ package MPTEST is ARGUMENT : in RTEMS.TASK_ARGUMENT ); --- --- This is the Driver Address Table for this test. --- - - DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := - (1=> - ( - CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization - RTEMS.NO_DRIVER_ENTRY, -- Open - RTEMS.NO_DRIVER_ENTRY, -- Close - RTEMS.NO_DRIVER_ENTRY, -- Read - RTEMS.NO_DRIVER_ENTRY, -- Write - RTEMS.NO_DRIVER_ENTRY -- Control - ) - ); - --- --- This is the Initialization Tasks Table for this test. --- - - INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := - (1=> - ( - RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name - 2048, -- stack size - 1, -- priority - RTEMS.DEFAULT_ATTRIBUTES, -- attributes - MPTEST.INIT'ACCESS, -- entry point - RTEMS.NO_PREEMPT, -- initial mode - 0 -- argument list - ) - ); - ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --- BEGIN SUBPACKAGE -- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- - - -- - -- MPTEST.PER_NODE_CONFIGURATION / SPECIFICATION - -- - -- DESCRIPTION: - -- - -- This package is the specification for the subpackage - -- which will define the per node configuration parameters. - -- - - package PER_NODE_CONFIGURATION is - - -- - -- LOCAL_NODE_NUMBER - -- - -- DESCRIPTION: - -- - -- This function returns the node number for this node. - -- - - function LOCAL_NODE_NUMBER - return RTEMS.UNSIGNED32; - - pragma INLINE ( LOCAL_NODE_NUMBER ); - - end PER_NODE_CONFIGURATION; - ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- --- END SUBPACKAGE -- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- - --- --- This is the Multiprocessor Configuration Table for this test. --- - - MULTIPROCESSING_CONFIGURATION : aliased RTEMS.MULTIPROCESSING_TABLE := ( - MPTEST.PER_NODE_CONFIGURATION.LOCAL_NODE_NUMBER, - 2, -- maximum # nodes in system - 32, -- maximum # global objects - 32 -- maximum # proxies - ); - --- --- This is the Configuration Table for this test. --- - - CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( - RTEMS.NULL_ADDRESS, -- will be replaced by BSP - 64 * 1024, -- executive RAM size - 10, -- maximum # tasks - 1, -- maximum # timers - 2, -- maximum # semaphores - 0, -- maximum # message queues - 0, -- maximum # messages - 0, -- maximum # partitions - 0, -- maximum # regions - 0, -- maximum # dp memory areas - 0, -- maximum # periods - 0, -- maximum # user extensions - RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick - 50 -- # ticks in a timeslice - ); - end MPTEST; |