diff options
Diffstat (limited to 'c/src/ada-tests/mptests/mp03')
-rw-r--r-- | c/src/ada-tests/mptests/mp03/Makefile.am | 4 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/config_base.h | 28 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/mptest.adb | 267 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/mptest.ads | 111 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node1/Makefile.am | 19 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node1/ada_mp03-node1.scn | 28 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node1/config.h | 21 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb | 56 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node2/Makefile.am | 19 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node2/ada_mp03-node2.scn | 28 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node2/config.h | 21 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb | 56 |
12 files changed, 0 insertions, 658 deletions
diff --git a/c/src/ada-tests/mptests/mp03/Makefile.am b/c/src/ada-tests/mptests/mp03/Makefile.am deleted file mode 100644 index 43bba78abb..0000000000 --- a/c/src/ada-tests/mptests/mp03/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -_SUBDIRS = node1 node2 - -include $(top_srcdir)/../../../testsuites/automake/subdirs.am -include $(top_srcdir)/../../../testsuites/automake/local.am diff --git a/c/src/ada-tests/mptests/mp03/config_base.h b/c/src/ada-tests/mptests/mp03/config_base.h deleted file mode 100644 index c1b8f24e86..0000000000 --- a/c/src/ada-tests/mptests/mp03/config_base.h +++ /dev/null @@ -1,28 +0,0 @@ -/* config_base.h - * - * This include file defines all of the Configuration Table for this test - * EXCEPT the NODE NUMBER. - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - - - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#define CONFIGURE_MAXIMUM_TASKS 2 - -#define CONFIGURE_MAXIMUM_POSIX_THREADS 10 -#define CONFIGURE_MAXIMUM_POSIX_KEYS 10 - -#include <rtems/confdefs.h> - -/* end of include file */ diff --git a/c/src/ada-tests/mptests/mp03/mptest.adb b/c/src/ada-tests/mptests/mp03/mptest.adb deleted file mode 100644 index 170b62fd5d..0000000000 --- a/c/src/ada-tests/mptests/mp03/mptest.adb +++ /dev/null @@ -1,267 +0,0 @@ --- --- This package is the implementation for Test 3 of the RTEMS --- Multiprocessor Test Suite. --- --- DEPENDENCIES: --- --- --- --- COPYRIGHT (c) 1989-2011. --- On-Line Applications Research Corporation (OAR). --- --- The license and distribution terms for this file may in --- the file LICENSE in this distribution or at --- http://www.rtems.org/license/LICENSE. --- - -with INTERFACES; use INTERFACES; -with RTEMS; -with RTEMS.EVENT; -with RTEMS.TASKS; -with RTEMS.TIMER; -with TEST_SUPPORT; -with TEXT_IO; -with UNSIGNED32_IO; - -package body MPTEST is - --- --- INIT --- - - procedure INIT ( - ARGUMENT : in RTEMS.TASKS.ARGUMENT - ) is - STATUS : RTEMS.STATUS_CODES; - begin - - TEXT_IO.NEW_LINE( 2 ); - TEXT_IO.PUT( "*** TEST 3 -- NODE " ); - UNSIGNED32_IO.PUT( - TEST_SUPPORT.NODE, - WIDTH => 1 - ); - TEXT_IO.PUT_LINE( " ***" ); - - MPTEST.TASK_NAME( 1 ) := RTEMS.BUILD_NAME( '1', '1', '1', ' ' ); - MPTEST.TASK_NAME( 2 ) := RTEMS.BUILD_NAME( '2', '2', '2', ' ' ); - - TEXT_IO.PUT_LINE( "Creating Test_task (Global)" ); - RTEMS.TASKS.CREATE( - MPTEST.TASK_NAME( TEST_SUPPORT.NODE ), - 1, - 2048, - RTEMS.NO_PREEMPT, - RTEMS.GLOBAL, - MPTEST.TASK_ID( 1 ), - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE" ); - - TEXT_IO.PUT_LINE( "Starting Test_task (Global)" ); - RTEMS.TASKS.START( - MPTEST.TASK_ID( 1 ), - MPTEST.TEST_TASK'ACCESS, - 0, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START" ); - - MPTEST.TIMER_NAME( 1 ) := RTEMS.BUILD_NAME( 'T', 'M', '1', ' ' ); - - RTEMS.TIMER.CREATE( - MPTEST.TIMER_NAME( 1 ), - MPTEST.TIMER_ID( 1 ), - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_CREATE" ); - - TEXT_IO.PUT_LINE( "Deleting initialization task" ); - RTEMS.TASKS.DELETE( RTEMS.SELF, STATUS ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_DELETE OF SELF" ); - - end INIT; - --- --- DELAYED_SEND_EVENT --- - - procedure DELAYED_SEND_EVENT ( - IGNORED_ID : in RTEMS.ID; - IGNORED_ADDRESS : in RTEMS.ADDRESS - ) is - STATUS : RTEMS.STATUS_CODES; - begin - - RTEMS.EVENT.SEND( MPTEST.TASK_ID( 1 ), RTEMS.EVENT_16, STATUS ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "EVENT_SEND" ); - - end DELAYED_SEND_EVENT; - --- --- TEST_TASK --- - - procedure TEST_TASK ( - ARGUMENT : in RTEMS.TASKS.ARGUMENT - ) is - TID : RTEMS.ID; - STATUS : RTEMS.STATUS_CODES; - begin - - RTEMS.TASKS.IDENT( RTEMS.SELF, RTEMS.SEARCH_ALL_NODES, TID, STATUS ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_IDENT OF SELF" ); - - TEXT_IO.PUT_LINE( "Getting TID of remote task" ); - if TEST_SUPPORT.NODE = 1 then - MPTEST.REMOTE_NODE := 2; - else - MPTEST.REMOTE_NODE := 1; - end if; - - TEXT_IO.PUT( "Remote task's name is : " ); - TEST_SUPPORT.PUT_NAME( MPTEST.TASK_NAME( MPTEST.REMOTE_NODE ), TRUE ); - - loop - - RTEMS.TASKS.IDENT( - MPTEST.TASK_NAME( MPTEST.REMOTE_NODE ), - RTEMS.SEARCH_ALL_NODES, - MPTEST.REMOTE_TID, - STATUS - ); - - exit when RTEMS.IS_STATUS_SUCCESSFUL( STATUS ); - - end loop; - - RTEMS.TIMER.FIRE_AFTER( - MPTEST.TIMER_ID( 1 ), - 10 * TEST_SUPPORT.TICKS_PER_SECOND, - MPTEST.DELAYED_SEND_EVENT'ACCESS, - RTEMS.NULL_ADDRESS, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_FIRE_AFTER" ); - - MPTEST.TEST_TASK_SUPPORT( 1 ); - - RTEMS.TIMER.FIRE_AFTER( - MPTEST.TIMER_ID( 1 ), - 11 * TEST_SUPPORT.TICKS_PER_SECOND, - MPTEST.DELAYED_SEND_EVENT'ACCESS, - RTEMS.NULL_ADDRESS, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_FIRE_AFTER" ); - - if TEST_SUPPORT.NODE = 2 then - - RTEMS.TASKS.WAKE_AFTER( - 2 * TEST_SUPPORT.TICKS_PER_SECOND, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" ); - - end if; - - MPTEST.TEST_TASK_SUPPORT( 2 ); - - TEXT_IO.PUT_LINE( "*** END OF TEST 3 ***" ); - - RTEMS.SHUTDOWN_EXECUTIVE( 0 ); - - end TEST_TASK; - --- --- TEST_TASK_SUPPORT --- - - - procedure TEST_TASK_SUPPORT ( - NODE : in RTEMS.UNSIGNED32 - ) is - EVENTS : RTEMS.EVENT_SET; - STATUS : RTEMS.STATUS_CODES; - begin - - if TEST_SUPPORT.NODE = NODE then - - loop - - RTEMS.EVENT.RECEIVE( - RTEMS.EVENT_16, - RTEMS.NO_WAIT, - RTEMS.NO_TIMEOUT, - EVENTS, - STATUS - ); - - exit when RTEMS.ARE_STATUSES_EQUAL( RTEMS.SUCCESSFUL, STATUS ); - - TEST_SUPPORT.FATAL_DIRECTIVE_STATUS( - STATUS, - RTEMS.UNSATISFIED, - "EVENT_RECEIVE" - ); - - RTEMS.TASKS.WAKE_AFTER( - 2 * TEST_SUPPORT.TICKS_PER_SECOND, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" ); - - TEST_SUPPORT.PUT_NAME( MPTEST.TASK_NAME( NODE ), FALSE ); - TEXT_IO.PUT_LINE( " - Suspending remote task" ); - RTEMS.TASKS.SUSPEND( MPTEST.REMOTE_TID, STATUS ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SUSPEND" ); - - RTEMS.TASKS.WAKE_AFTER( - 2 * TEST_SUPPORT.TICKS_PER_SECOND, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" ); - - TEST_SUPPORT.PUT_NAME( MPTEST.TASK_NAME( NODE ), FALSE ); - TEXT_IO.PUT_LINE( " - Resuming remote task" ); - - RTEMS.TASKS.RESUME( MPTEST.REMOTE_TID, STATUS ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_RESUME" ); - - end loop; - - else - - loop - - RTEMS.EVENT.RECEIVE( - RTEMS.EVENT_16, - RTEMS.NO_WAIT, - RTEMS.NO_TIMEOUT, - EVENTS, - STATUS - ); - - exit when RTEMS.ARE_STATUSES_EQUAL( RTEMS.SUCCESSFUL, STATUS ); - - TEST_SUPPORT.FATAL_DIRECTIVE_STATUS( - STATUS, - RTEMS.UNSATISFIED, - "EVENT_RECEIVE" - ); - - TEST_SUPPORT.PUT_NAME( MPTEST.TASK_NAME( REMOTE_NODE ), FALSE ); - TEXT_IO.PUT_LINE( " - have I been suspended???" ); - RTEMS.TASKS.WAKE_AFTER( - TEST_SUPPORT.TICKS_PER_SECOND / 2, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" ); - - end loop; - - end if; - - end TEST_TASK_SUPPORT; - -end MPTEST; diff --git a/c/src/ada-tests/mptests/mp03/mptest.ads b/c/src/ada-tests/mptests/mp03/mptest.ads deleted file mode 100644 index 6e7f59947e..0000000000 --- a/c/src/ada-tests/mptests/mp03/mptest.ads +++ /dev/null @@ -1,111 +0,0 @@ --- --- MPTEST / SPECIFICATION --- --- DESCRIPTION: --- --- This package is the specification for Test 3 of the RTEMS --- Multiprocessor Test Suite. --- --- DEPENDENCIES: --- --- --- --- COPYRIGHT (c) 1989-2011. --- On-Line Applications Research Corporation (OAR). --- --- The license and distribution terms for this file may in --- the file LICENSE in this distribution or at --- http://www.rtems.org/license/LICENSE. --- - -with RTEMS; -with RTEMS.TASKS; - -package MPTEST is - --- --- These arrays contain the IDs and NAMEs of all RTEMS tasks created --- by this test. --- - - TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; - TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; - --- --- These arrays contain the IDs and NAMEs of all RTEMS timers created --- by this test. --- - - TIMER_ID : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID; - TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME; - --- --- This variable contains the ID of the remote task with which this --- test interacts. --- - - REMOTE_TID : RTEMS.ID; - --- --- This variable contains the node on which the remote task with which --- this test interacts resides. --- - - REMOTE_NODE : RTEMS.UNSIGNED32; - --- --- INIT --- --- DESCRIPTION: --- --- This RTEMS task initializes the application. --- - - procedure INIT ( - ARGUMENT : in RTEMS.TASKS.ARGUMENT - ); - pragma Convention (C, INIT); - --- --- DELAYED_SEND_EVENT --- --- DESCRIPTION: --- --- This subprogram is a timer service routine which sends an --- event set to a waiting task. --- - - procedure DELAYED_SEND_EVENT ( - IGNORED_ID : in RTEMS.ID; - IGNORED_ADDRESS : in RTEMS.ADDRESS - ); - pragma Convention (C, DELAYED_SEND_EVENT); - --- --- TEST_TASK --- --- DESCRIPTION: --- --- This is the body of the RTEMS tasks which constitute this test. --- - - procedure TEST_TASK ( - ARGUMENT : in RTEMS.TASKS.ARGUMENT - ); - pragma Convention (C, TEST_TASK); - --- --- TEST_TASK_SUPPORT --- --- DESCRIPTION: --- --- This subprogram performs the bulk of the test. Based on the NODE --- specified, this subprogram loops suspending/resuming a remote task --- or waiting for itself to be suspended/resumed. --- - - procedure TEST_TASK_SUPPORT ( - NODE : in RTEMS.UNSIGNED32 - ); - -end MPTEST; diff --git a/c/src/ada-tests/mptests/mp03/node1/Makefile.am b/c/src/ada-tests/mptests/mp03/node1/Makefile.am deleted file mode 100644 index 859fdb3702..0000000000 --- a/c/src/ada-tests/mptests/mp03/node1/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../../../testsuites/automake/compile.am - -include $(top_srcdir)/ada.am - -AM_ADAFLAGS += -I$(srcdir)/.. - -noinst_PROGRAMS = mp03_ada_mp03_node1 -mp03_ada_mp03_node1_SOURCES = mp03_node1.adb ../mptest.adb config.h -mp03_ada_mp03_node1_SOURCES += ../mptest.ads -mp03_ada_mp03_node1_SOURCES += ../../../support/init.c - -mp03_ada_mp03_node1$(EXEEXT): mp03_node1.adb ../mptest.adb init.$(OBJEXT) - $(GNATCOMPILE) -margs -a $< -o $@ - -scndir = $(rtems_ada_testsdir) -dist_scn_DATA = ada_mp03-node1.scn - -include $(top_srcdir)/../../../testsuites/automake/local.am diff --git a/c/src/ada-tests/mptests/mp03/node1/ada_mp03-node1.scn b/c/src/ada-tests/mptests/mp03/node1/ada_mp03-node1.scn deleted file mode 100644 index d749db49e2..0000000000 --- a/c/src/ada-tests/mptests/mp03/node1/ada_mp03-node1.scn +++ /dev/null @@ -1,28 +0,0 @@ -*** TEST 3 -- NODE 1 *** -Creating Test_task (Global) -Starting Test_task (Global) -Deleting initialization task -Getting TID of remote task -Remote task's name is : 222 -111 - Suspending remote task -111 - Resuming remote task -111 - Suspending remote task -111 - Resuming remote task -111 - Suspending remote task -111 - Resuming remote task -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -222 - have I been suspended??? -*** END OF TEST 3 *** - diff --git a/c/src/ada-tests/mptests/mp03/node1/config.h b/c/src/ada-tests/mptests/mp03/node1/config.h deleted file mode 100644 index 36c9d133e8..0000000000 --- a/c/src/ada-tests/mptests/mp03/node1/config.h +++ /dev/null @@ -1,21 +0,0 @@ -/* config.h - * - * This include file defines the Configuration Table for this test. - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - - -/* configuration information */ - -#define CONFIGURE_MP_APPLICATION -#define CONFIGURE_MP_NODE_NUMBER 1 - -#include "../config_base.h" - -/* end of include file */ diff --git a/c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb b/c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb deleted file mode 100644 index 80a67ffc94..0000000000 --- a/c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb +++ /dev/null @@ -1,56 +0,0 @@ --- --- MAIN / BODY --- --- DESCRIPTION: --- --- This is the entry point for Test MP03_NODE1 of the Multiprocessor --- Test Suite. --- --- DEPENDENCIES: --- --- --- --- COPYRIGHT (c) 1989-2011. --- On-Line Applications Research Corporation (OAR). --- --- The license and distribution terms for this file may in --- the file LICENSE in this distribution or at --- http://www.rtems.org/license/LICENSE. --- - -with RTEMS; -with RTEMS.TASKS; -with MPTEST; -with TEST_SUPPORT; - -procedure MP03_NODE1 is - INIT_ID : RTEMS.ID; - STATUS : RTEMS.STATUS_CODES; -begin - - RTEMS.TASKS.CREATE( - RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ), - 1, - RTEMS.MINIMUM_STACK_SIZE, - RTEMS.NO_PREEMPT, - RTEMS.DEFAULT_ATTRIBUTES, - INIT_ID, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" ); - - - RTEMS.TASKS.START( - INIT_ID, - MPTEST.INIT'ACCESS, - 0, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" ); - - loop - delay 120.0; - end loop; - -end MP03_NODE1; - diff --git a/c/src/ada-tests/mptests/mp03/node2/Makefile.am b/c/src/ada-tests/mptests/mp03/node2/Makefile.am deleted file mode 100644 index b7088eb4a7..0000000000 --- a/c/src/ada-tests/mptests/mp03/node2/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../../../testsuites/automake/compile.am - -include $(top_srcdir)/ada.am - -AM_ADAFLAGS += -I$(srcdir)/.. - -noinst_PROGRAMS = mp03_ada_mp03_node2 -mp03_ada_mp03_node2_SOURCES = mp03_node2.adb ../mptest.adb config.h -mp03_ada_mp03_node2_SOURCES += ../mptest.ads -mp03_ada_mp03_node2_SOURCES += ../../../support/init.c - -mp03_ada_mp03_node2$(EXEEXT): mp03_node2.adb ../mptest.adb init.$(OBJEXT) - $(GNATCOMPILE) -margs -a $< -o $@ - -scndir = $(rtems_ada_testsdir) -dist_scn_DATA = ada_mp03-node2.scn - -include $(top_srcdir)/../../../testsuites/automake/local.am diff --git a/c/src/ada-tests/mptests/mp03/node2/ada_mp03-node2.scn b/c/src/ada-tests/mptests/mp03/node2/ada_mp03-node2.scn deleted file mode 100644 index 56298f5b8d..0000000000 --- a/c/src/ada-tests/mptests/mp03/node2/ada_mp03-node2.scn +++ /dev/null @@ -1,28 +0,0 @@ -*** TEST 3 -- NODE 2 *** -Creating Test_task (Global) -Starting Test_task (Global) -Deleting initialization task -Getting TID of remote task -Remote task's name is : 111 -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -111 - have I been suspended??? -222 - Suspending remote task -222 - Resuming remote task -222 - Suspending remote task -222 - Resuming remote task -222 - Suspending remote task -222 - Resuming remote task -*** END OF TEST 3 *** - diff --git a/c/src/ada-tests/mptests/mp03/node2/config.h b/c/src/ada-tests/mptests/mp03/node2/config.h deleted file mode 100644 index 47edf66149..0000000000 --- a/c/src/ada-tests/mptests/mp03/node2/config.h +++ /dev/null @@ -1,21 +0,0 @@ -/* config.h - * - * This include file defines the Configuration Table for this test. - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - - -/* configuration information */ - -#define CONFIGURE_MP_APPLICATION -#define CONFIGURE_MP_NODE_NUMBER 2 - -#include "../config_base.h" - -/* end of include file */ diff --git a/c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb b/c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb deleted file mode 100644 index aec5b91edd..0000000000 --- a/c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb +++ /dev/null @@ -1,56 +0,0 @@ --- --- MAIN / BODY --- --- DESCRIPTION: --- --- This is the entry point for Test MP03_NODE2 of the Multiprocessor --- Test Suite. --- --- DEPENDENCIES: --- --- --- --- COPYRIGHT (c) 1989-2011. --- On-Line Applications Research Corporation (OAR). --- --- The license and distribution terms for this file may in --- the file LICENSE in this distribution or at --- http://www.rtems.org/license/LICENSE. --- - -with RTEMS; -with RTEMS.TASKS; -with MPTEST; -with TEST_SUPPORT; - -procedure MP03_NODE2 is - INIT_ID : RTEMS.ID; - STATUS : RTEMS.STATUS_CODES; -begin - - RTEMS.TASKS.CREATE( - RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ), - 1, - RTEMS.MINIMUM_STACK_SIZE, - RTEMS.NO_PREEMPT, - RTEMS.DEFAULT_ATTRIBUTES, - INIT_ID, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" ); - - - RTEMS.TASKS.START( - INIT_ID, - MPTEST.INIT'ACCESS, - 0, - STATUS - ); - TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" ); - - loop - delay 120.0; - end loop; - -end MP03_NODE2; - |