diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 01:01:27 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 01:01:27 +0000 |
commit | bab35bd6f7587ae388ee8b63d207a756a7f4bae1 (patch) | |
tree | 6aa8a97640ae0d387c9a52b9031fbab7c2a35035 /c/src/tests/mptests/mp05 | |
parent | 2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-bab35bd6f7587ae388ee8b63d207a756a7f4bae1.tar.bz2 |
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* mp01/node1/.cvsignore: Remove.
* mp01/node1/Makefile.am: Remove.
* mp01/node1/mp01.doc: Remove.
* mp01/node1/mp01.scn: Remove.
* mp01/.cvsignore: Remove.
* mp01/Makefile.am: Remove.
* mp01/init.c: Remove.
* mp01/system.h: Remove.
* mp01/task1.c: Remove.
* mp01/node2/.cvsignore: Remove.
* mp01/node2/Makefile.am: Remove.
* mp01/node2/mp01.doc: Remove.
* mp01/node2/mp01.scn: Remove.
* mp02/node1/.cvsignore: Remove.
* mp02/node1/Makefile.am: Remove.
* mp02/node1/mp02.doc: Remove.
* mp02/node1/mp02.scn: Remove.
* mp02/.cvsignore: Remove.
* mp02/Makefile.am: Remove.
* mp02/init.c: Remove.
* mp02/system.h: Remove.
* mp02/task1.c: Remove.
* mp02/node2/.cvsignore: Remove.
* mp02/node2/Makefile.am: Remove.
* mp02/node2/mp02.doc: Remove.
* mp02/node2/mp02.scn: Remove.
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* README: Remove.
* configure.ac: Remove.
* mptests.am: Remove.
* mp03/node1/.cvsignore: Remove.
* mp03/node1/Makefile.am: Remove.
* mp03/node1/mp03.doc: Remove.
* mp03/node1/mp03.scn: Remove.
* mp03/.cvsignore: Remove.
* mp03/Makefile.am: Remove.
* mp03/delay.c: Remove.
* mp03/init.c: Remove.
* mp03/system.h: Remove.
* mp03/task1.c: Remove.
* mp03/node2/.cvsignore: Remove.
* mp03/node2/Makefile.am: Remove.
* mp03/node2/mp03.doc: Remove.
* mp03/node2/mp03.scn: Remove.
* mp04/node1/.cvsignore: Remove.
* mp04/node1/Makefile.am: Remove.
* mp04/node1/mp04.doc: Remove.
* mp04/node1/mp04.scn: Remove.
* mp04/.cvsignore: Remove.
* mp04/Makefile.am: Remove.
* mp04/init.c: Remove.
* mp04/system.h: Remove.
* mp04/task1.c: Remove.
* mp04/node2/.cvsignore: Remove.
* mp04/node2/Makefile.am: Remove.
* mp04/node2/mp04.doc: Remove.
* mp04/node2/mp04.scn: Remove.
* mp05/node1/.cvsignore: Remove.
* mp05/node1/Makefile.am: Remove.
* mp05/node1/mp05.doc: Remove.
* mp05/node1/mp05.scn: Remove.
* mp05/.cvsignore: Remove.
* mp05/Makefile.am: Remove.
* mp05/asr.c: Remove.
* mp05/init.c: Remove.
* mp05/system.h: Remove.
* mp05/task1.c: Remove.
* mp05/node2/.cvsignore: Remove.
* mp05/node2/Makefile.am: Remove.
* mp05/node2/mp05.doc: Remove.
* mp05/node2/mp05.scn: Remove.
* mp06/node1/.cvsignore: Remove.
* mp06/node1/Makefile.am: Remove.
* mp06/node1/mp06.doc: Remove.
* mp06/node1/mp06.scn: Remove.
* mp06/.cvsignore: Remove.
* mp06/Makefile.am: Remove.
* mp06/init.c: Remove.
* mp06/system.h: Remove.
* mp06/task1.c: Remove.
* mp06/node2/.cvsignore: Remove.
* mp06/node2/Makefile.am: Remove.
* mp06/node2/mp06.doc: Remove.
* mp06/node2/mp06.scn: Remove.
* mp07/node1/.cvsignore: Remove.
* mp07/node1/Makefile.am: Remove.
* mp07/node1/mp07.doc: Remove.
* mp07/node1/mp07.scn: Remove.
* mp07/.cvsignore: Remove.
* mp07/Makefile.am: Remove.
* mp07/init.c: Remove.
* mp07/system.h: Remove.
* mp07/task1.c: Remove.
* mp07/node2/.cvsignore: Remove.
* mp07/node2/Makefile.am: Remove.
* mp07/node2/mp07.doc: Remove.
* mp07/node2/mp07.scn: Remove.
* mp08/node1/.cvsignore: Remove.
* mp08/node1/Makefile.am: Remove.
* mp08/node1/mp08.doc: Remove.
* mp08/node1/mp08.scn: Remove.
* mp08/.cvsignore: Remove.
* mp08/Makefile.am: Remove.
* mp08/init.c: Remove.
* mp08/system.h: Remove.
* mp08/task1.c: Remove.
* mp08/node2/.cvsignore: Remove.
* mp08/node2/Makefile.am: Remove.
* mp08/node2/mp08.doc: Remove.
* mp08/node2/mp08.scn: Remove.
* mp09/node1/.cvsignore: Remove.
* mp09/node1/Makefile.am: Remove.
* mp09/node1/mp09.doc: Remove.
* mp09/node1/mp09.scn: Remove.
* mp09/.cvsignore: Remove.
* mp09/Makefile.am: Remove.
* mp09/init.c: Remove.
* mp09/recvmsg.c: Remove.
* mp09/sendmsg.c: Remove.
* mp09/system.h: Remove.
* mp09/task1.c: Remove.
* mp09/node2/.cvsignore: Remove.
* mp09/node2/Makefile.am: Remove.
* mp09/node2/mp09.doc: Remove.
* mp09/node2/mp09.scn: Remove.
* mp10/node1/.cvsignore: Remove.
* mp10/node1/Makefile.am: Remove.
* mp10/node1/mp10.doc: Remove.
* mp10/node1/mp10.scn: Remove.
* mp10/.cvsignore: Remove.
* mp10/Makefile.am: Remove.
* mp10/init.c: Remove.
* mp10/system.h: Remove.
* mp10/task1.c: Remove.
* mp10/task2.c: Remove.
* mp10/task3.c: Remove.
* mp10/node2/.cvsignore: Remove.
* mp10/node2/Makefile.am: Remove.
* mp10/node2/mp10.doc: Remove.
* mp10/node2/mp10.scn: Remove.
* mp11/node1/.cvsignore: Remove.
* mp11/node1/Makefile.am: Remove.
* mp11/node1/mp11.doc: Remove.
* mp11/node1/mp11.scn: Remove.
* mp11/.cvsignore: Remove.
* mp11/Makefile.am: Remove.
* mp11/init.c: Remove.
* mp11/system.h: Remove.
* mp11/node2/.cvsignore: Remove.
* mp11/node2/Makefile.am: Remove.
* mp11/node2/mp11.doc: Remove.
* mp11/node2/mp11.scn: Remove.
* mp12/node1/.cvsignore: Remove.
* mp12/node1/Makefile.am: Remove.
* mp12/node1/mp12.doc: Remove.
* mp12/node1/mp12.scn: Remove.
* mp12/.cvsignore: Remove.
* mp12/Makefile.am: Remove.
* mp12/init.c: Remove.
* mp12/system.h: Remove.
* mp12/node2/.cvsignore: Remove.
* mp12/node2/Makefile.am: Remove.
* mp12/node2/mp12.doc: Remove.
* mp12/node2/mp12.scn: Remove.
* mp13/node1/.cvsignore: Remove.
* mp13/node1/Makefile.am: Remove.
* mp13/node1/mp13.doc: Remove.
* mp13/node1/mp13.scn: Remove.
* mp13/.cvsignore: Remove.
* mp13/Makefile.am: Remove.
* mp13/init.c: Remove.
* mp13/system.h: Remove.
* mp13/task1.c: Remove.
* mp13/task2.c: Remove.
* mp13/node2/.cvsignore: Remove.
* mp13/node2/Makefile.am: Remove.
* mp13/node2/mp13.doc: Remove.
* mp13/node2/mp13.scn: Remove.
* mp14/node1/.cvsignore: Remove.
* mp14/node1/Makefile.am: Remove.
* mp14/node1/mp14.doc: Remove.
* mp14/node1/mp14.scn: Remove.
* mp14/.cvsignore: Remove.
* mp14/Makefile.am: Remove.
* mp14/delay.c: Remove.
* mp14/evtask1.c: Remove.
* mp14/evtmtask.c: Remove.
* mp14/exit.c: Remove.
* mp14/init.c: Remove.
* mp14/msgtask1.c: Remove.
* mp14/pttask1.c: Remove.
* mp14/smtask1.c: Remove.
* mp14/system.h: Remove.
* mp14/node2/.cvsignore: Remove.
* mp14/node2/Makefile.am: Remove.
* mp14/node2/mp14.doc: Remove.
* mp14/node2/mp14.scn: Remove.
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/mptests/mp05/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/Makefile.am | 11 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/asr.c | 36 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/init.c | 64 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node1/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node1/Makefile.am | 50 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node1/mp05.doc | 44 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node1/mp05.scn | 11 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node2/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node2/Makefile.am | 50 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node2/mp05.doc | 12 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/node2/mp05.scn | 10 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/system.h | 63 | ||||
-rw-r--r-- | c/src/tests/mptests/mp05/task1.c | 105 |
14 files changed, 0 insertions, 462 deletions
diff --git a/c/src/tests/mptests/mp05/.cvsignore b/c/src/tests/mptests/mp05/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp05/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp05/Makefile.am b/c/src/tests/mptests/mp05/Makefile.am deleted file mode 100644 index e314964bb4..0000000000 --- a/c/src/tests/mptests/mp05/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -## -## $Id$ -## - - -SUBDIRS = node1 node2 - -EXTRA_DIST = system.h asr.c init.c task1.c - -include $(top_srcdir)/../automake/subdirs.am -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp05/asr.c b/c/src/tests/mptests/mp05/asr.c deleted file mode 100644 index 18c0c2703d..0000000000 --- a/c/src/tests/mptests/mp05/asr.c +++ /dev/null @@ -1,36 +0,0 @@ -/* Process_asr - * - * This routine performs the processing for task 1's RTEMS_ASR. It is called - * by an assembly routine which saves the necessary registers. - * - * Input parameters: - * signal - signal set - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include "system.h" - -rtems_asr Process_asr( - rtems_signal_set signal -) -{ - if ( signal != expected_signal ) { - printf( - "ERROR: I was expecting signal 0x%.8x got 0x%.8x\n", - expected_signal, - signal - ); - rtems_fatal_error_occurred( 0xf0000 ); - } - signal_caught = 1; -} diff --git a/c/src/tests/mptests/mp05/init.c b/c/src/tests/mptests/mp05/init.c deleted file mode 100644 index 87fae61216..0000000000 --- a/c/src/tests/mptests/mp05/init.c +++ /dev/null @@ -1,64 +0,0 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#define TEST_INIT -#include "system.h" - -rtems_task Init( - rtems_task_argument argument -) -{ - rtems_status_code status; - - printf( - "\n\n*** TEST 5 -- NODE %d ***\n", - Multiprocessing_configuration.node - ); - - Task_name[ 1 ] = rtems_build_name( '1', '1', '1', ' ' ); - Task_name[ 2 ] = rtems_build_name( '2', '2', '2', ' ' ); - - puts( "Creating Test_task (Global)" ); - status = rtems_task_create( - Task_name[Multiprocessing_configuration.node], - 1, - RTEMS_MINIMUM_STACK_SIZE * 2, - RTEMS_TIMESLICE, - RTEMS_GLOBAL, - &Task_id[ 1 ] - ); - directive_failed( status, "rtems_task_create" ); - - puts( "Starting Test_task (Global)" ); - status = rtems_task_start( Task_id[ 1 ], Test_task, 0 ); - directive_failed( status, "rtems_task_start" ); - - Timer_name[ 1 ] = rtems_build_name( 'T', 'M', '1', ' ' ); - - status = rtems_timer_create( Timer_name[ 1 ], &Timer_id[ 1 ] ); - directive_failed( status, "rtems_timer_create" ); - - puts( "Deleting initialization task" ); - status = rtems_task_delete( RTEMS_SELF ); - directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); -} diff --git a/c/src/tests/mptests/mp05/node1/.cvsignore b/c/src/tests/mptests/mp05/node1/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp05/node1/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp05/node1/Makefile.am b/c/src/tests/mptests/mp05/node1/Makefile.am deleted file mode 100644 index 5172c6f812..0000000000 --- a/c/src/tests/mptests/mp05/node1/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## -## $Id$ -## - - -VPATH = @srcdir@:@srcdir@/.. - -NODE = 1 -TEST = mp05 -PGM = ${ARCH}/$(TEST)-node$(NODE).exe - -MANAGERS = io mp signal timer - -C_FILES = init.c asr.c task1.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -H_FILES = system.h - -DOCTYPES = doc scn -DOCS = $(DOCTYPES:%=$(TEST).%) - -SRCS = $(DOCS) $(C_FILES) $(H_FILES) -OBJS = $(C_O_FILES) - -PRINT_SRCS = $(DOCS) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am -include $(top_srcdir)/mptests.am - -AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I$(srcdir)/.. - -if HAS_MP - -# -# (OPTIONAL) Add local stuff here using += -# - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -all-local: $(ARCH) $(TMPINSTALL_FILES) -else -all-local: -endif - -EXTRA_DIST = $(DOCS) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp05/node1/mp05.doc b/c/src/tests/mptests/mp05/node1/mp05.doc deleted file mode 100644 index 4760e01fcf..0000000000 --- a/c/src/tests/mptests/mp05/node1/mp05.doc +++ /dev/null @@ -1,44 +0,0 @@ -# -# $Id$ -# -# COPYRIGHT (c) 1989-1999. -# On-Line Applications Research Corporation (OAR). -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.com/license/LICENSE. -# - - -This file describes the directives and concepts tested by this test set. - -test set name: test54 - -directives: - ex_init, ex_start, t_create, t_start, tm_tick, i_return, t_ident, - tm_wkafter, as_catch, as_return - -concepts: - - a. Verifies system can create and start both the executive's system - initialization and idle task. - - b. Verifies executive can swap between three application tasks at the - same priority and the executive's internal idle task. - - c. Verifies can print strings to the CRT on port 2 of the mvme136 board - using Print and Println in the board support package. - - d. Verifies interrupt handler can handler a task switch from an interrupt - as specified with the i_return directive. - - e. Verifies executive initialization performed correctly. - - f. Verifies the executive trap handler except for the halt function. - - g. Verifies that a task can get the task identification number of itself. - - h. Verifies that a task can get the task identification number - of another task. - - i. Verifies that a signal can be sent to a remote task. diff --git a/c/src/tests/mptests/mp05/node1/mp05.scn b/c/src/tests/mptests/mp05/node1/mp05.scn deleted file mode 100644 index 472740ba18..0000000000 --- a/c/src/tests/mptests/mp05/node1/mp05.scn +++ /dev/null @@ -1,11 +0,0 @@ -*** TEST 5 -- NODE 1 *** -Creating Test_task (Global) -Starting Test_task (Global) -Deleting initialization task -rtems_signal_catch: initializing signal catcher -Remote task's name is : 222 -Getting TID of remote task -Sending signal to remote task -.................................................... -.................................................... -*** END OF TEST 5 *** diff --git a/c/src/tests/mptests/mp05/node2/.cvsignore b/c/src/tests/mptests/mp05/node2/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp05/node2/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp05/node2/Makefile.am b/c/src/tests/mptests/mp05/node2/Makefile.am deleted file mode 100644 index c3aeadae9c..0000000000 --- a/c/src/tests/mptests/mp05/node2/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## -## $Id$ -## - - -VPATH = @srcdir@:@srcdir@/.. - -NODE = 2 -TEST = mp05 -PGM = ${ARCH}/$(TEST)-node$(NODE).exe - -MANAGERS = io mp signal timer - -C_FILES = init.c asr.c task1.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -H_FILES = system.h - -DOCTYPES = doc scn -DOCS = $(DOCTYPES:%=$(TEST).%) - -SRCS = $(DOCS) $(C_FILES) $(H_FILES) -OBJS = $(C_O_FILES) - -PRINT_SRCS = $(DOCS) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am -include $(top_srcdir)/mptests.am - -AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I$(srcdir)/.. - -if HAS_MP - -# -# (OPTIONAL) Add local stuff here using += -# - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -all-local: $(ARCH) $(TMPINSTALL_FILES) -else -all-local: -endif - -EXTRA_DIST = $(DOCS) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp05/node2/mp05.doc b/c/src/tests/mptests/mp05/node2/mp05.doc deleted file mode 100644 index 5c0baceb8d..0000000000 --- a/c/src/tests/mptests/mp05/node2/mp05.doc +++ /dev/null @@ -1,12 +0,0 @@ -# -# $Id$ -# -# COPYRIGHT (c) 1989-1999. -# On-Line Applications Research Corporation (OAR). -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.com/license/LICENSE. -# - - diff --git a/c/src/tests/mptests/mp05/node2/mp05.scn b/c/src/tests/mptests/mp05/node2/mp05.scn deleted file mode 100644 index 0c4b412f65..0000000000 --- a/c/src/tests/mptests/mp05/node2/mp05.scn +++ /dev/null @@ -1,10 +0,0 @@ -*** TEST 5 -- NODE 2 *** -Creating Test_task (Global) -Starting Test_task (Global) -Deleting initialization task -rtems_signal_catch: initializing signal catcher -Remote task's name is : 111 -Getting TID of remote task -.................................................... -.................................................... -*** END OF TEST 5 *** diff --git a/c/src/tests/mptests/mp05/system.h b/c/src/tests/mptests/mp05/system.h deleted file mode 100644 index b7db3c1182..0000000000 --- a/c/src/tests/mptests/mp05/system.h +++ /dev/null @@ -1,63 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <tmacros.h> - -/* functions */ - -rtems_task Init( - rtems_task_argument argument -); - -rtems_task Test_task( - rtems_task_argument argument -); - -rtems_asr Process_asr( rtems_signal_set ); - -/* configuration information */ - -#define CONFIGURE_MP_APPLICATION - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_TASKS 2 -#define CONFIGURE_MAXIMUM_TIMERS 1 - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#define CONFIGURE_EXTRA_TASK_STACKS (1 * RTEMS_MINIMUM_STACK_SIZE) - -#include <confdefs.h> - -/* variables */ - -TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ -TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ - -TEST_EXTERN rtems_id Timer_id[ 2 ]; /* array of timer ids */ -TEST_EXTERN rtems_name Timer_name[ 2 ]; /* array of timer names */ - -TEST_EXTERN volatile rtems_boolean Stop_Test; - -TEST_EXTERN rtems_unsigned32 remote_node; -TEST_EXTERN rtems_id remote_tid; -TEST_EXTERN rtems_signal_set remote_signal; -TEST_EXTERN rtems_signal_set expected_signal; -TEST_EXTERN volatile rtems_unsigned32 signal_count; -TEST_EXTERN volatile rtems_unsigned32 signal_caught; - -/* end of include file */ diff --git a/c/src/tests/mptests/mp05/task1.c b/c/src/tests/mptests/mp05/task1.c deleted file mode 100644 index 680b78640a..0000000000 --- a/c/src/tests/mptests/mp05/task1.c +++ /dev/null @@ -1,105 +0,0 @@ -/* Test_task - * - * This task initializes the signal catcher, sends the first signal - * if running on the first node, and loops while waiting for signals. - * - * NOTE: The signal catcher is not reentrant and hence RTEMS_NO_ASR must - * be a part of its execution mode. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include "system.h" - -#define SIGNALS_PER_DOT 15 - -rtems_timer_service_routine Stop_Test_TSR( - rtems_id ignored_id, - void *ignored_address -) -{ - Stop_Test = TRUE; -} - -rtems_task Test_task( - rtems_task_argument argument -) -{ - rtems_status_code status; - - Stop_Test = FALSE; - - signal_caught = 0; - signal_count = 0; - - puts( "rtems_signal_catch: initializing signal catcher" ); - status = rtems_signal_catch( Process_asr, RTEMS_NO_ASR|RTEMS_NO_PREEMPT ); - directive_failed( status, "rtems_signal_catch" ); - - if (Multiprocessing_configuration.node == 1) { - remote_node = 2; - remote_signal = RTEMS_SIGNAL_18; - expected_signal = RTEMS_SIGNAL_17; - } - else { - remote_node = 1; - remote_signal = RTEMS_SIGNAL_17; - expected_signal = RTEMS_SIGNAL_18; - } - puts_nocr( "Remote task's name is : " ); - put_name( Task_name[ remote_node ], TRUE ); - - puts( "Getting TID of remote task" ); - do { - status = rtems_task_ident( - Task_name[ remote_node ], - RTEMS_SEARCH_ALL_NODES, - &remote_tid - ); - } while ( status != RTEMS_SUCCESSFUL ); - directive_failed( status, "rtems_task_ident" ); - - status = rtems_timer_fire_after( - Timer_id[ 1 ], - 3 * TICKS_PER_SECOND, - Stop_Test_TSR, - NULL - ); - directive_failed( status, "rtems_timer_fire_after" ); - - if ( Multiprocessing_configuration.node == 1 ) { - puts( "Sending signal to remote task" ); - do { - status = rtems_signal_send( remote_tid, remote_signal ); - if ( status == RTEMS_NOT_DEFINED ) - continue; - } while ( status != RTEMS_SUCCESSFUL ); - directive_failed( status, "rtems_signal_send" ); - } - - while ( Stop_Test == FALSE ) { - if ( signal_caught ) { - signal_caught = 0; - if ( ++signal_count >= SIGNALS_PER_DOT ) { - signal_count = 0; - put_dot( '.' ); - } - status = rtems_signal_send( remote_tid, remote_signal ); - directive_failed( status, "rtems_signal_send" ); - } - } - puts( "\n*** END OF TEST 5 ***" ); - rtems_test_exit( 0 ); -} |