diff options
Diffstat (limited to 'c/src/ada-tests/mptests/mp11/node2')
-rw-r--r-- | c/src/ada-tests/mptests/mp11/node2/Makefile.am | 12 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp11/node2/config.h | 23 | ||||
-rw-r--r-- | c/src/ada-tests/mptests/mp11/node2/mp11_node2.adb | 56 |
3 files changed, 84 insertions, 7 deletions
diff --git a/c/src/ada-tests/mptests/mp11/node2/Makefile.am b/c/src/ada-tests/mptests/mp11/node2/Makefile.am index 4f7c39d453..c2651d384e 100644 --- a/c/src/ada-tests/mptests/mp11/node2/Makefile.am +++ b/c/src/ada-tests/mptests/mp11/node2/Makefile.am @@ -7,14 +7,12 @@ include $(top_srcdir)/ada.am AM_ADAFLAGS += -I$(srcdir)/.. -node2$(EXEEXT): ../mptest.adb - $(GNATCOMPILE) -margs -a $< -o $@ - -if EXPADA -noinst_PROGRAMS = node2 -endif +noinst_PROGRAMS = mp11_node2 +mp11_node2_SOURCES = mp11_node2.adb ../mptest.adb config.h ../mptest.ads +mp11_node2_SOURCES += ../../../support/init.c -node2_SOURCES = mptest-per_node_configuration.adb +mp11_node2$(EXEEXT): mp11_node2.adb ../mptest.adb init.$(OBJEXT) + $(GNATCOMPILE) -margs -a $< -o $@ scndir = $(rtems_ada_testsdir) dist_scn_DATA = mp11-node2.scn diff --git a/c/src/ada-tests/mptests/mp11/node2/config.h b/c/src/ada-tests/mptests/mp11/node2/config.h new file mode 100644 index 0000000000..409e7d691d --- /dev/null +++ b/c/src/ada-tests/mptests/mp11/node2/config.h @@ -0,0 +1,23 @@ +/* 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.com/license/LICENSE. + * + * $Id$ + */ + + +/* 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/mp11/node2/mp11_node2.adb b/c/src/ada-tests/mptests/mp11/node2/mp11_node2.adb new file mode 100644 index 0000000000..3e44feaaa6 --- /dev/null +++ b/c/src/ada-tests/mptests/mp11/node2/mp11_node2.adb @@ -0,0 +1,56 @@ +-- +-- MAIN / BODY +-- +-- DESCRIPTION: +-- +-- This is the entry point for Test MP11_NODE2 of the Single Processor Test Suite. +-- +-- DEPENDENCIES: +-- +-- +-- +-- 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.com/license/LICENSE. +-- +-- $Id$ +-- + +with RTEMS; +with MPTEST; +with TEST_SUPPORT; + +procedure MP11_NODE2 is + INIT_ID : RTEMS.ID; + STATUS : RTEMS.STATUS_CODES; +begin + + RTEMS.TASK_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.TASK_START( + INIT_ID, + MPTEST.INIT'ACCESS, + 0, + STATUS + ); + TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" ); + + loop + delay 120.0; + end loop; + +end MP11_NODE2; + |