summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp14
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-17 19:36:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-17 19:36:43 +0000
commit4b374f36e7172d59d6d8c252973c1ef65637ecbb (patch)
treed6be1084c310d24004e9b056eebdac6c286a4f25 /testsuites/mptests/mp14
parentadded tty driver to simhppa (diff)
downloadrtems-4b374f36e7172d59d6d8c252973c1ef65637ecbb.tar.bz2
maximum number of messages removed and include statement cleanup
Diffstat (limited to 'testsuites/mptests/mp14')
-rw-r--r--testsuites/mptests/mp14/init.c3
-rw-r--r--testsuites/mptests/mp14/msgtask1.c10
-rw-r--r--testsuites/mptests/mp14/system.h7
3 files changed, 12 insertions, 8 deletions
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 <rtems.h>
-#include "tmacros.h"
-#include "mpci.h"
+#include <tmacros.h>
+#include <mpci.h>
/* Miscellaneous */