From 4b374f36e7172d59d6d8c252973c1ef65637ecbb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Aug 1995 19:36:43 +0000 Subject: maximum number of messages removed and include statement cleanup --- testsuites/mptests/mp14/init.c | 3 ++- testsuites/mptests/mp14/msgtask1.c | 10 +++++++--- testsuites/mptests/mp14/system.h | 7 +++---- 3 files changed, 12 insertions(+), 8 deletions(-) (limited to 'testsuites/mptests/mp14') diff --git a/testsuites/mptests/mp14/init.c b/testsuites/mptests/mp14/init.c index ab403ad395..d7bc7c9706 100644 --- a/testsuites/mptests/mp14/init.c +++ b/testsuites/mptests/mp14/init.c @@ -19,7 +19,7 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * init.c,v 1.2 1995/05/31 17:04:55 joel Exp */ #include "system.h" @@ -102,6 +102,7 @@ rtems_task Init( status = rtems_message_queue_create( Queue_name[ 1 ], 1, + 16, RTEMS_GLOBAL, &Queue_id[ 1 ] ); diff --git a/testsuites/mptests/mp14/msgtask1.c b/testsuites/mptests/mp14/msgtask1.c index 2a9f6e235b..a4f9fd4bf7 100644 --- a/testsuites/mptests/mp14/msgtask1.c +++ b/testsuites/mptests/mp14/msgtask1.c @@ -18,7 +18,7 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * msgtask1.c,v 1.2 1995/05/31 17:04:58 joel Exp */ #include "system.h" @@ -32,6 +32,7 @@ rtems_task Message_queue_task( rtems_unsigned32 yield_count; rtems_unsigned32 *buffer_count; rtems_unsigned32 *overflow_count; + rtems_unsigned32 size; Msg_buffer[ index ][0] = 0; Msg_buffer[ index ][1] = 0; @@ -53,7 +54,8 @@ rtems_task Message_queue_task( if ( Multiprocessing_configuration.node == 1 ) { status = rtems_message_queue_send( Queue_id[ 1 ], - (long (*)[4])Msg_buffer[ index ] + (long (*)[4])Msg_buffer[ index ], + 16 ); directive_failed( status, "rtems_message_queue_send" ); overflow_count = &Msg_buffer[ index ][0]; @@ -70,6 +72,7 @@ rtems_task Message_queue_task( status = rtems_message_queue_receive( Queue_id[ 1 ], (long (*)[4])Msg_buffer[ index ], + &size, RTEMS_DEFAULT_OPTIONS, RTEMS_NO_TIMEOUT ); @@ -83,7 +86,8 @@ rtems_task Message_queue_task( status = rtems_message_queue_send( Queue_id[ 1 ], - (long (*)[4])Msg_buffer[ index ] + (long (*)[4])Msg_buffer[ index ], + 16 ); directive_failed( status, "rtems_message_queue_send" ); diff --git a/testsuites/mptests/mp14/system.h b/testsuites/mptests/mp14/system.h index f2393df080..eaf933a819 100644 --- a/testsuites/mptests/mp14/system.h +++ b/testsuites/mptests/mp14/system.h @@ -11,12 +11,11 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * system.h,v 1.2 1995/05/31 17:05:03 joel Exp */ -#include -#include "tmacros.h" -#include "mpci.h" +#include +#include /* Miscellaneous */ -- cgit v1.2.3