maximum number of messages removed and include statement cleanup

This commit is contained in:
Joel Sherrill
1995-08-17 19:36:43 +00:00
parent 556fb911c8
commit 4b374f36e7
250 changed files with 3372 additions and 1052 deletions

View File

@@ -11,11 +11,10 @@
* 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:00:40 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */
@@ -25,6 +24,6 @@
/* structures */
#include "gvar.h"
#include <gvar.h>
/* end of include file */

View File

@@ -11,11 +11,10 @@
* 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:01:00 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:01:22 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:01:40 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:02:00 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:02:18 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:02:38 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
#define EXTERN extern /* external definition */

View File

@@ -11,11 +11,10 @@
* 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:02:55 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -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:03:11 joel Exp
*/
#include "system.h"
@@ -49,7 +49,8 @@ rtems_task Init(
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_GLOBAL|RTEMS_LIMIT,
16,
RTEMS_GLOBAL,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create" );

View File

@@ -10,6 +10,7 @@ Receiving message ...
Received : abcdefghijklmno
Receiving message ...
Received : ABCDEFGHIJKLMNO
Receiver delaying for a second
rtems_message_queue_send: 123456789012345
Delaying for a second
rtems_message_queue_urgent: abcdefghijklmno

View File

@@ -16,12 +16,12 @@ Receiving message ...
Received : abcdefghijklmno
Receiving message ...
Received : ABCDEFGHIJKLMNO
Receiver delaying for a second
Flushing remote empty queue
00 messages were flushed on the remote queue
0 messages were flushed on the remote queue
Send messages to be flushed from remote queue
Flushing remote queue
01 messages were flushed on the remote queue
1 messages were flushed on the remote queue
Waiting for message queue to be deleted
Global message queue deleted
*** END OF TEST 9 ***

View File

@@ -15,7 +15,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$
* recvmsg.c,v 1.2 1995/05/31 17:03:14 joel Exp
*/
#include "system.h"
@@ -24,6 +24,7 @@ void Receive_messages()
{
rtems_status_code status;
rtems_unsigned32 index;
rtems_unsigned32 size;
char receive_buffer[16];
for ( index=1 ; index <=3 ; index++ ) {
@@ -31,6 +32,7 @@ void Receive_messages()
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -15,7 +15,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$
* sendmsg.c,v 1.2 1995/05/31 17:03:16 joel Exp
*/
#include "system.h"
@@ -28,7 +28,7 @@ void Send_messages()
puts_nocr( "rtems_message_queue_send: " );
puts( buffer1 );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "Delaying for a second" );
@@ -37,7 +37,7 @@ void Send_messages()
puts_nocr( "rtems_message_queue_urgent: " );
puts( buffer2 );
status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2 );
status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2, 16 );
directive_failed( status, "rtems_message_queue_urgent" );
puts( "Delaying for a second" );
@@ -49,6 +49,7 @@ void Send_messages()
status = rtems_message_queue_broadcast(
Queue_id[ 1 ],
(long (*)[4])buffer3,
16,
&broadcast_count
);
directive_failed( status, "rtems_message_queue_broadcast" );

View File

@@ -11,11 +11,10 @@
* 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:03:17 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -16,7 +16,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$
* task1.c,v 1.2 1995/05/31 17:03:19 joel Exp
*/
#include "system.h"
@@ -32,6 +32,7 @@ rtems_task Test_task(
{
rtems_status_code status;
rtems_unsigned32 count;
rtems_unsigned32 size;
char receive_buffer[16];
status = rtems_task_wake_after( TICKS_PER_SECOND );
@@ -64,21 +65,22 @@ rtems_task Test_task(
puts( "Flushing remote empty queue" );
status = rtems_message_queue_flush( Queue_id[ 1 ], &count );
directive_failed( status, "rtems_message_queue_flush" );
printf( "%02d messages were flushed on the remote queue\n", count );
printf( "%d messages were flushed on the remote queue\n", count );
puts( "Send messages to be flushed from remote queue" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "Flushing remote queue" );
status = rtems_message_queue_flush( Queue_id[ 1 ], &count );
directive_failed( status, "rtems_message_queue_flush" );
printf( "%02d messages were flushed on the remote queue\n", count );
printf( "%d messages were flushed on the remote queue\n", count );
puts( "Waiting for message queue to be deleted" );
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -25,7 +25,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:03:33 joel Exp
*/
#include "system.h"
@@ -58,7 +58,8 @@ rtems_task Init(
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_GLOBAL|RTEMS_LIMIT,
16,
RTEMS_GLOBAL,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create" );

View File

@@ -11,11 +11,10 @@
* 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:03:35 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -16,7 +16,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$
* task1.c,v 1.2 1995/05/31 17:03:37 joel Exp
*/
#include "system.h"
@@ -26,6 +26,7 @@ rtems_task Test_task1(
)
{
char receive_buffer[16];
rtems_unsigned32 size;
rtems_status_code status;
puts( "Getting QID of message queue" );
@@ -42,6 +43,7 @@ rtems_task Test_task1(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -22,7 +22,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:03:55 joel Exp
*/
#include "system.h"
@@ -69,7 +69,8 @@ rtems_task Init(
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_GLOBAL|RTEMS_LIMIT,
16,
RTEMS_GLOBAL,
&junk_id
);
fatal_directive_status(

View File

@@ -11,11 +11,10 @@
* 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:03:57 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:04:13 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -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:29 joel Exp
*/
#include "system.h"
@@ -51,7 +51,8 @@ rtems_task Init(
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_GLOBAL|RTEMS_LIMIT,
16,
RTEMS_GLOBAL,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create" );

View File

@@ -11,11 +11,10 @@
* 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:04:31 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -17,7 +17,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$
* task1.c,v 1.2 1995/05/31 17:04:33 joel Exp
*/
#include "system.h"
@@ -27,6 +27,7 @@ rtems_task Test_task1(
)
{
char receive_buffer[16];
rtems_unsigned32 size;
rtems_status_code status;
puts( "Getting QID of message queue" );
@@ -44,6 +45,7 @@ rtems_task Test_task1(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -58,6 +60,7 @@ rtems_task Test_task1(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
2 * TICKS_PER_SECOND
);

View File

@@ -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 ]
);

View File

@@ -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" );

View File

@@ -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 */

View File

@@ -17,11 +17,10 @@
* 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$
* apptask.c,v 1.2 1995/05/31 17:05:14 joel Exp
*/
#include "system.h"
#include "libcsupport.h"
rtems_task Application_task(
rtems_task_argument node

View File

@@ -11,12 +11,13 @@
* 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:21 joel Exp
*/
#include <rtems.h>
#include "stdio.h"
#include "libcsupport.h"
#include <bsp.h>
#include <stdio.h>
#include <libcsupport.h>
/* Miscellaneous */

View File

@@ -16,11 +16,10 @@
* 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$
* apptask.c,v 1.2 1995/05/31 17:05:28 joel Exp
*/
#include "system.h"
#include "libcsupport.h"
rtems_task Application_task(
rtems_task_argument argument

View File

@@ -11,11 +11,12 @@
* 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:38 joel Exp
*/
#include <rtems.h>
#include "stdio.h"
#include <bsp.h>
#include <stdio.h>
/* Miscellaneous */

View File

@@ -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$
* init.c,v 1.2 1995/05/31 17:05:45 joel Exp
*/
#include "system.h"
@@ -27,4 +27,3 @@
#include "conftbl.h"
#include "gvar.h"
#include <stdio.h>
#include "libcsupport.h"

View File

@@ -11,11 +11,12 @@
* 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:49 joel Exp
*/
#include <rtems.h>
#include "stdio.h"
#include <bsp.h>
#include <stdio.h>
/* Miscellaneous */

View File

@@ -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$
* init.c,v 1.2 1995/05/31 17:05:58 joel Exp
*/
#include "system.h"
@@ -27,8 +27,6 @@
#include "conftbl.h"
#include "gvar.h"
#include <stdio.h>
#include "libcsupport.h"
rtems_task Init(
rtems_task_argument ignored

View File

@@ -11,11 +11,13 @@
* 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:06:00 joel Exp
*/
#include <rtems.h>
#include "stdio.h"
#include <bsp.h>
#include <stdio.h>
/* Miscellaneous */

View File

@@ -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$
* init.c,v 1.2 1995/05/31 17:06:07 joel Exp
*/
#include "system.h"
@@ -26,7 +26,6 @@
#define EXTERN
#include "conftbl.h"
#include "gvar.h"
#include "libcsupport.h"
extern int paranoia(int, char **);

View File

@@ -1,5 +1,5 @@
/*
* RTEMS RCS Id: $Id$
* RTEMS RCS Id: paranoia.c,v 1.2 1995/05/31 17:06:09 joel Exp
*
* A C version of Kahan's Floating Point Test "Paranoia"
*
@@ -161,7 +161,7 @@
*/
#ifdef NEED_REENT
#include "reent.h"
#include <reent.h>
struct _reent libm_reent = _REENT_INIT(libm_reent);
struct _reent *_impure_ptr = &libm_reent;
#endif

View File

@@ -11,11 +11,12 @@
* 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:06:13 joel Exp
*/
#include <rtems.h>
#include "stdio.h"
#include <bsp.h>
#include <stdio.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:06:23 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:06:37 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:06:54 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:07:10 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:07:24 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -16,11 +16,10 @@
* 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$
* task1.c,v 1.2 1995/05/31 17:07:26 joel Exp
*/
#include "system.h"
#include "clockdrv.h"
rtems_task Task_1(
rtems_task_argument argument

View File

@@ -11,11 +11,10 @@
* 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:07:40 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:07:56 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:08:12 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* constants */

View File

@@ -11,11 +11,10 @@
* 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:08:40 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -14,7 +14,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$
* screen05.c,v 1.2 1995/05/31 17:08:59 joel Exp
*/
#include "system.h"
@@ -49,12 +49,14 @@ void Screen5()
directive_failed( status, "rtems_semaphore_create" );
puts( "TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL" );
status = rtems_semaphore_create(
Semaphore_name[ 3 ],
1,
RTEMS_DEFAULT_ATTRIBUTES,
&Junk_id
);
do {
status = rtems_semaphore_create(
Semaphore_name[ 3 ],
1,
RTEMS_DEFAULT_ATTRIBUTES,
&Junk_id);
} while (status == RTEMS_SUCCESSFUL);
fatal_directive_status(
status,
RTEMS_TOO_MANY,

View File

@@ -14,7 +14,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$
* screen07.c,v 1.2 1995/05/31 17:09:03 joel Exp
*/
#include "system.h"
@@ -22,10 +22,11 @@
void Screen7()
{
long buffer[ 4 ];
rtems_unsigned32 size;
rtems_unsigned32 count;
rtems_status_code status;
status = rtems_message_queue_broadcast( 100, (long (*)[4]) buffer, &count );
status = rtems_message_queue_broadcast( 100, (long (*)[4]) buffer, 16, &count );
fatal_directive_status(
status,
RTEMS_INVALID_ID,
@@ -36,6 +37,7 @@ void Screen7()
status = rtems_message_queue_create(
0,
3,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Junk_id
);
@@ -49,6 +51,7 @@ void Screen7()
status = rtems_message_queue_create(
Queue_name[ 1 ],
1,
16,
RTEMS_GLOBAL,
&Junk_id
);
@@ -62,17 +65,19 @@ void Screen7()
status = rtems_message_queue_create(
Queue_name[ 1 ],
2,
RTEMS_LIMIT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create successful" );
puts(
"TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL"
"TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL"
);
status = rtems_message_queue_create(
Queue_name[ 2 ],
1,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Junk_id
);
@@ -118,6 +123,7 @@ void Screen7()
status = rtems_message_queue_receive(
100,
(long (*)[4]) buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
0
);
@@ -131,6 +137,7 @@ void Screen7()
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4]) buffer,
&size,
RTEMS_NO_WAIT,
RTEMS_NO_TIMEOUT
);
@@ -145,6 +152,7 @@ void Screen7()
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4]) buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
3 * TICKS_PER_SECOND
);
@@ -158,7 +166,7 @@ void Screen7()
"TA1 - rtems_message_queue_receive - Q 1 - woke up with RTEMS_TIMEOUT"
);
status = rtems_message_queue_send( 100, (long (*)[4]) buffer );
status = rtems_message_queue_send( 100, (long (*)[4]) buffer, 16 );
fatal_directive_status(
status,
RTEMS_INVALID_ID,
@@ -166,15 +174,15 @@ void Screen7()
);
puts( "TA1 - rtems_message_queue_send - RTEMS_INVALID_ID" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
fatal_directive_status(
status,
RTEMS_TOO_MANY,

View File

@@ -14,7 +14,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$
* screen08.c,v 1.2 1995/05/31 17:09:05 joel Exp
*/
#include "system.h"
@@ -31,23 +31,24 @@ void Screen8()
status = rtems_message_queue_create(
Queue_name[ 1 ],
2,
RTEMS_LIMIT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create successful" );
puts(
"TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL"
"TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL"
);
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send successful" );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send successful" );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
fatal_directive_status(
status,
RTEMS_TOO_MANY,
@@ -62,30 +63,35 @@ void Screen8()
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_LIMIT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create successful" );
puts(
"TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL"
"TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL"
);
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send successful" );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send successful" );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send successful" );
puts( "TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_SUCCESSFUL" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer, 16 );
fatal_directive_status(
status,
RTEMS_UNSATISFIED,
RTEMS_TOO_MANY,
"rtems_message_queue_send too many to limited queue"
);
puts(
"TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_UNSATISFIED"
"TA1 - rtems_message_queue_send - BUFFER 4 TO Q 1 - RTEMS_TOO_MANY"
);
status = rtems_message_queue_delete( Queue_id[ 1 ] );
@@ -95,12 +101,13 @@ void Screen8()
status = rtems_message_queue_create(
Queue_name[ 1 ],
3,
RTEMS_LIMIT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create successful" );
puts(
"TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL"
"TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL"
);
puts( "TA1 - rtems_task_start - start TA3 - RTEMS_SUCCESSFUL" );

View File

@@ -14,7 +14,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$
* screen09.c,v 1.2 1995/05/31 17:09:07 joel Exp
*/
#include "system.h"

View File

@@ -14,53 +14,52 @@
* 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$
* screen13.c,v 1.2 1995/05/31 17:09:14 joel Exp
*/
#include "system.h"
void Screen13()
{
rtems_unsigned32 result;
rtems_time_of_day time;
rtems_status_code status;
status = rtems_io_close( 0xffff, 0x0000, NULL, &result );
status = rtems_io_close( 0xffff, 0x0000, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
"rtems_io_close with bad major number"
);
puts( "TA1 - rtems_io_close - RTEMS_INVALID_NUMBER" );
status = rtems_io_control( 0xffff, 0x00000, NULL, &result );
status = rtems_io_control( 0xffff, 0x00000, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
"rtems_io_close with bad major number"
);
puts( "TA1 - rtems_io_control - RTEMS_INVALID_NUMBER" );
status = rtems_io_initialize( 0xffff, 0x00000, NULL, &result );
status = rtems_io_initialize( 0xffff, 0x00000, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
"rtems_io_initialize with bad major number"
);
puts( "TA1 - rtems_io_initialize - RTEMS_INVALID_NUMBER" );
status = rtems_io_open( 0xffff, 0x00000, NULL, &result );
status = rtems_io_open( 0xffff, 0x00000, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
"rtems_io_open with bad major number"
);
puts( "TA1 - rtems_io_open - RTEMS_INVALID_NUMBER" );
status = rtems_io_read( 0xffff, 0x00000, NULL, &result );
status = rtems_io_read( 0xffff, 0x00000, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
"rtems_io_read with bad major number"
);
puts( "TA1 - rtems_io_read - RTEMS_INVALID_NUMBER" );
status = rtems_io_write( 0xffff, 0x0ffff, NULL, &result );
status = rtems_io_write( 0xffff, 0x0ffff, NULL);
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,

View File

@@ -96,7 +96,7 @@ TA2 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_broadcast - RTEMS_INVALID_ID
TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME
TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED
TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 2 - RTEMS_TOO_MANY
TA1 - rtems_message_queue_delete - unknown RTEMS_INVALID_ID
TA1 - rtems_message_queue_delete - local RTEMS_INVALID_ID
@@ -112,17 +112,18 @@ TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_TOO_MANY
<pause - screen 8>
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_TOO_MANY
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_UNSATISFIED
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_send - BUFFER 4 TO Q 1 - RTEMS_TOO_MANY
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL
TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL
TA1 - rtems_task_start - start TA3 - RTEMS_SUCCESSFUL
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
TA3 - rtems_message_queue_receive - Q 1 - RTEMS_WAIT FOREVER

View File

@@ -11,11 +11,10 @@
* 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:09:17 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -17,7 +17,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$
* task3.c,v 1.2 1995/05/31 17:09:22 joel Exp
*/
#include "system.h"
@@ -28,11 +28,13 @@ rtems_task Task_3(
{
rtems_status_code status;
long buffer[ 4 ];
rtems_unsigned32 size;
puts( "TA3 - rtems_message_queue_receive - Q 1 - RTEMS_WAIT FOREVER" );
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -11,11 +11,10 @@
* 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:09:35 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:09:55 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -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:10:13 joel Exp
*/
#include "system.h"
@@ -78,14 +78,15 @@ rtems_task Init(
status = rtems_task_start( Task_id[ 3 ], Task_3, 0 );
directive_failed( status, "rtems_task_start of TA3" );
Queue_name[ 1 ] = rtems_build_name( 'Q', '1', ' ', ' ' );
Queue_name[ 2 ] = rtems_build_name( 'Q', '2', ' ', ' ' );
Queue_name[ 3 ] = rtems_build_name( 'Q', '3', ' ', ' ' );
status = rtems_message_queue_create(
Queue_name[ 1 ],
0,
100,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
@@ -94,14 +95,16 @@ rtems_task Init(
status = rtems_message_queue_create(
Queue_name[ 2 ],
10,
RTEMS_PRIORITY | RTEMS_LIMIT,
16,
RTEMS_PRIORITY,
&Queue_id[ 2 ]
);
directive_failed( status, "rtems_message_queue_create of Q2" );
status = rtems_message_queue_create(
Queue_name[ 3 ],
0,
100,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 3 ]
);

View File

@@ -16,13 +16,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$
* putbuff.c,v 1.2 1995/05/31 17:10:15 joel Exp
*/
#include "system.h"
#define BUFFER_LENGTH 16
void Put_buffer(
long *buffer
)

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,10 @@
* 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:10:19 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -15,23 +15,48 @@
* 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$
* task1.c,v 1.2 1995/05/31 17:10:20 joel Exp
*/
#include "system.h"
#include <string.h> /* for memcmp */
extern rtems_configuration_table BSP_Configuration;
char big_send_buffer[2048];
char big_receive_buffer[2048];
long buffer[ 4 ];
void dope_buffer(unsigned char *buff,
int buff_size,
unsigned32 v)
{
int i;
unsigned char ch;
ch = (' ' + (v % (0x7f - ' ')));
for (i=0; i<buff_size; i++)
{
*buff++ = ch++;
if (ch >= 0x7f)
ch = ' ';
}
}
rtems_task Task_1(
rtems_task_argument argument
)
{
rtems_id qid;
long buffer[ 4 ];
rtems_unsigned32 index;
rtems_unsigned32 count;
rtems_status_code status;
rtems_unsigned32 size;
rtems_unsigned32 queue_size;
char *cp;
status = rtems_message_queue_ident(
Queue_name[ 1 ],
RTEMS_SEARCH_ALL_NODES,
@@ -42,12 +67,12 @@ rtems_task Task_1(
Fill_buffer( "BUFFER 1 TO Q 1", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 2 TO Q 1", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
@@ -56,7 +81,7 @@ rtems_task Task_1(
Fill_buffer( "BUFFER 3 TO Q 1", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1" );
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 1 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
@@ -67,14 +92,15 @@ pause();
Fill_buffer( "BUFFER 1 TO Q 2", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 2" );
status = rtems_message_queue_send( Queue_id[ 2 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 2 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts_nocr( "TA1 - rtems_message_queue_receive - receive from queue 1 - " );
puts ( "10 second timeout" );
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
10 * TICKS_PER_SECOND
);
@@ -89,7 +115,7 @@ pause();
Fill_buffer( "BUFFER 1 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
@@ -100,22 +126,22 @@ pause();
Fill_buffer( "BUFFER 2 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 3 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 4 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 4 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 5 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_urgent - BUFFER 5 TO Q 3" );
status = rtems_message_queue_urgent( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_urgent( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_urgent" );
for ( index = 1 ; index <= 4 ; index++ ) {
@@ -125,7 +151,8 @@ pause();
);
status = rtems_message_queue_receive(
Queue_id[ 3 ],
(long (*)[4])buffer,
buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -137,7 +164,7 @@ pause();
Fill_buffer( "BUFFER 3 TO Q 2", buffer );
puts( "TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2" );
status = rtems_message_queue_urgent( Queue_id[ 2 ], (long (*)[4])buffer );
status = rtems_message_queue_urgent( Queue_id[ 2 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_urgent" );
puts(
@@ -146,7 +173,8 @@ pause();
);
status = rtems_message_queue_receive(
Queue_id[ 2 ],
(long (*)[4])buffer,
buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -163,7 +191,7 @@ pause();
Fill_buffer( "BUFFER 3 TO Q 2", buffer );
puts( "TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2" );
status = rtems_message_queue_urgent( Queue_id[ 2 ], (long (*)[4])buffer );
status = rtems_message_queue_urgent( Queue_id[ 2 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_urgent" );
puts( "TA1 - rtems_message_queue_delete - delete queue 2" );
@@ -176,17 +204,17 @@ pause();
Fill_buffer( "BUFFER 1 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 2 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
Fill_buffer( "BUFFER 3 TO Q 3", buffer );
puts( "TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3" );
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts( "TA1 - rtems_message_queue_flush - Q 3" );
@@ -195,8 +223,8 @@ pause();
puts( "TA1 - rtems_message_queue_send until all message buffers consumed" );
while ( FOREVER ) {
status = rtems_message_queue_send( Queue_id[ 3 ], (long (*)[4])buffer );
if ( status == RTEMS_UNSATISFIED ) break;
status = rtems_message_queue_send( Queue_id[ 3 ], buffer, 16 );
if ( status == RTEMS_TOO_MANY ) break;
directive_failed( status, "rtems_message_queue_send loop" );
}
@@ -205,9 +233,114 @@ pause();
status = rtems_message_queue_flush( Queue_id[ 3 ], &count );
printf( "TA1 - %d messages were flushed from Q 3\n", count );
if ( count != BSP_Configuration.maximum_messages )
printf( "TA1 - ERROR - %d messages flushed!!!", count );
pause();
puts( "TA1 - create message queue of 20 bytes on queue 1" );
status = rtems_message_queue_create(
Queue_name[ 1 ],
100,
20,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create of Q1; 20 bytes each" );
status = rtems_message_queue_send( Queue_id[ 3 ], big_send_buffer, 40 );
fatal_directive_status(status, RTEMS_INVALID_SIZE, "expected RTEMS_INVALID_SIZE");
puts( "TA1 - rtems_message_queue_delete - delete queue 1" );
status = rtems_message_queue_delete( Queue_id[ 1 ] );
directive_failed( status, "rtems_message_queue_delete" );
pause();
puts( "TA1 - rtems_message_queue_create - variable sizes " );
for (queue_size = 1; queue_size < 1030; queue_size++)
{
status = rtems_message_queue_create(
Queue_name[ 1 ],
2, /* just 2 msgs each */
queue_size,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
if (status != RTEMS_SUCCESSFUL)
{
printf("TA1 - msq que size: %d\n", queue_size);
directive_failed( status, "rtems_message_queue_create of Q1" );
}
status = rtems_message_queue_delete( Queue_id[ 1 ] );
directive_failed( status, "rtems_message_queue_delete" );
}
pause();
puts( "TA1 - rtems_message_queue_create and send - variable sizes " );
for (queue_size = 1; queue_size < 1030; queue_size++)
{
printf("TA1 - message queue size: %d\n", queue_size);
status = rtems_message_queue_create(
Queue_name[ 1 ],
2, /* just 2 msgs each */
queue_size,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
directive_failed( status, "rtems_message_queue_create of Q1" );
dope_buffer(big_send_buffer, sizeof(big_send_buffer), queue_size);
memset(big_receive_buffer, 'Z', sizeof(big_receive_buffer));
/* send a msg too big */
status = rtems_message_queue_send( Queue_id[ 1 ],
big_send_buffer,
queue_size + 1 );
fatal_directive_status(status,
RTEMS_INVALID_SIZE,
"rtems_message_queue_send too large");
/* send a msg that is just right */
status = rtems_message_queue_send(Queue_id[ 1 ],
big_send_buffer,
queue_size);
directive_failed(status, "rtems_message_queue_send exact size");
/* now read and verify the message just sent */
status = rtems_message_queue_receive(Queue_id[ 1 ],
big_receive_buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
1 * TICKS_PER_SECOND);
directive_failed(status, "rtems_message_queue_receive exact size");
if (size != queue_size)
{
puts("TA1 - exact size size match failed");
exit(1);
}
if (memcmp(big_send_buffer, big_receive_buffer, size) != 0)
{
puts("TA1 - exact size data match failed");
exit(1);
}
for (cp = (big_receive_buffer + size);
cp < (big_receive_buffer + sizeof(big_receive_buffer));
cp++)
if (*cp != 'Z')
{
puts("TA1 - exact size overrun match failed");
exit(1);
}
/* all done with this one; delete it */
status = rtems_message_queue_delete( Queue_id[ 1 ] );
directive_failed( status, "rtems_message_queue_delete" );
}
puts( "*** END OF TEST 13 ***" );
exit( 0 );
}

View File

@@ -16,7 +16,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$
* task2.c,v 1.2 1995/05/31 17:10:22 joel Exp
*/
#include "system.h"
@@ -26,6 +26,7 @@ rtems_task Task_2(
)
{
long buffer[ 4 ];
rtems_unsigned32 size;
rtems_task_priority previous_priority;
rtems_status_code status;
@@ -35,6 +36,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
&size,
RTEMS_NO_WAIT,
RTEMS_NO_TIMEOUT
);
@@ -50,6 +52,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -65,6 +68,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -84,6 +88,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 2 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -96,7 +101,7 @@ rtems_task Task_2(
puts( "TA2 - rtems_message_queue_send - BUFFER 2 TO Q 2" );
directive_failed( status, "rtems_message_queue_send" );
status = rtems_message_queue_send( Queue_id[ 2 ], (long (*)[4])buffer );
status = rtems_message_queue_send( Queue_id[ 2 ], (long (*)[4])buffer, 16 );
directive_failed( status, "rtems_message_queue_send" );
puts(
@@ -106,6 +111,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 1 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
10 * TICKS_PER_SECOND
);
@@ -121,6 +127,7 @@ rtems_task Task_2(
status = rtems_message_queue_receive(
Queue_id[ 3 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -16,7 +16,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$
* task3.c,v 1.2 1995/05/31 17:10:24 joel Exp
*/
#include "system.h"
@@ -26,6 +26,7 @@ rtems_task Task_3(
)
{
long buffer[ 4 ];
rtems_unsigned32 size;
rtems_unsigned32 count;
rtems_status_code status;
@@ -36,6 +37,7 @@ rtems_task Task_3(
status = rtems_message_queue_receive(
Queue_id[ 2 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -49,6 +51,7 @@ rtems_task Task_3(
status = rtems_message_queue_broadcast(
Queue_id[ 1 ],
(long (*)[4])buffer,
16,
&count
);
printf( "TA3 - number of tasks awakened = %02d\n", count );
@@ -60,6 +63,7 @@ rtems_task Task_3(
status = rtems_message_queue_receive(
Queue_id[ 3 ],
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -11,11 +11,10 @@
* 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:10:37 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:10:52 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:11:05 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:11:26 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -22,7 +22,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$
* fptest.h,v 1.2 1995/05/31 17:11:39 joel Exp
*/

View File

@@ -23,7 +23,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$
* inttest.h,v 1.2 1995/05/31 17:11:44 joel Exp
*/

View File

@@ -11,11 +11,10 @@
* 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:11:47 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:12:02 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:12:14 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -15,7 +15,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$
* task1.c,v 1.3 1995/05/31 17:37:05 joel Exp
*/
#include "system.h"
@@ -29,63 +29,62 @@ rtems_task Task_1(
)
{
rtems_status_code status;
rtems_status_code return_value;
puts( "----- TESTING THE NULL DRIVER CHECKS -----" );
status = rtems_io_initialize( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_initialize( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_initialize" );
puts( "TA1 - rtems_io_initialize - NULL DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_open( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_open( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_open" );
puts( "TA1 - rtems_io_open - NULL DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_close( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_close( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_close" );
puts( "TA1 - rtems_io_close - NULL DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_read( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_read( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_read" );
puts( "TA1 - rtems_io_read - NULL DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_write( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_write( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_write" );
puts( "TA1 - rtems_io_write - NULL DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_control( NO_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_control( NO_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_control" );
puts( "TA1 - rtems_io_control - NULL DRIVER RTEMS_SUCCESSFUL" );
puts( "----- TESTING THE I/O MANAGER DIRECTIVES -----" );
status = rtems_io_initialize( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_initialize( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_initialize" );
puts( "TA1 - rtems_io_initialize - STUB DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_open( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_open( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_open" );
puts( "TA1 - rtems_io_open - STUB DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_close( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_close( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_close" );
puts( "TA1 - rtems_io_close - STUB DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_read( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_read( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_read" );
puts( "TA1 - rtems_io_read - STUB DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_write( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_write( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_write" );
puts( "TA1 - rtems_io_write - STUB DRIVER RTEMS_SUCCESSFUL" );
status = rtems_io_control( STUB_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_control( STUB_DRIVER_MAJOR, 0, NULL );
directive_failed( status, "rtems_io_control" );
puts( "TA1 - rtems_io_control - STUB DRIVER RTEMS_SUCCESSFUL" );
puts( "----- RETURNING INVALID MAJOR NUMBER -----" );
status = rtems_io_initialize( INVALID_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_initialize( INVALID_DRIVER_MAJOR, 0, NULL );
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,
@@ -93,7 +92,7 @@ rtems_task Task_1(
);
puts( "TA1 - rtems_io_initialize - RTEMS_INVALID_NUMBER" );
status = rtems_io_open( INVALID_DRIVER_MAJOR, 0, NULL, &return_value );
status = rtems_io_open( INVALID_DRIVER_MAJOR, 0, NULL );
fatal_directive_status(
status,
RTEMS_INVALID_NUMBER,

View File

@@ -11,11 +11,10 @@
* 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:12:31 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:12:45 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:13:00 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:13:11 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,11 +11,10 @@
* 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:13:28 joel Exp
*/
#include <rtems.h>
#include "tmacros.h"
#include <tmacros.h>
/* Miscellaneous */

View File

@@ -11,7 +11,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$
* size.c,v 1.4 1995/07/12 19:47:25 joel Exp
*/
#include <rtems/system.h>
@@ -66,7 +66,7 @@
(sizeof (Timer_Control) + NAME_PTR_SIZE)
#define PER_MSGQ \
(sizeof (Message_queue_Control) + NAME_PTR_SIZE)
#define PER_MSG \
#define PER_MSG_OVERHEAD \
(sizeof (Message_queue_Buffer_control))
#define PER_REGN \
(sizeof (Region_Control) + NAME_PTR_SIZE)
@@ -240,8 +240,7 @@ uninitialized =
(sizeof _ISR_Vector_table) +
(sizeof _ISR_Signals_to_thread_executing) +
/*message.h*/ (sizeof _Message_queue_Inactive_messages) +
(sizeof _Message_queue_Information) +
/*message.h*/ (sizeof _Message_queue_Information) +
/*modes.h*/ 0 +
@@ -422,7 +421,7 @@ int maximum_tasks, size_tasks;
int maximum_sems, size_sems;
int maximum_timers, size_timers;
int maximum_msgqs, size_msgqs;
int maximum_msgs, size_msgs;
int maximum_msgs, size_msgs_overhead;
int maximum_regns, size_regns;
int maximum_parts, size_parts;
int maximum_ports, size_ports;
@@ -457,8 +456,8 @@ total_size += size_msgqs;
printf( "What is maximum_messages? " );
maximum_msgs = getint();
size_msgs = PER_MSG * maximum_msgs;
total_size += size_msgs;
size_msgs_overhead = PER_MSG_OVERHEAD * maximum_msgs;
total_size += size_msgs_overhead;
printf( "What is maximum_regions? " );
maximum_regns = getint();
@@ -545,8 +544,8 @@ printf( " Timers - %03d * %03d = %d\n",
maximum_timers, PER_TIMER, size_timers );
printf( " Msg Queues - %03d * %03d = %d\n",
maximum_msgqs, PER_MSGQ, size_msgqs );
printf( " Messages - %03d * %03d = %d\n",
maximum_msgs, PER_MSG, size_msgs );
printf( " Messages Overhead - %03d * %03d = %d\n",
maximum_msgs, PER_MSG_OVERHEAD, size_msgs_overhead );
printf( " Regions - %03d * %03d = %d\n",
maximum_regns, PER_REGN, size_regns);
printf( " Partitions - %03d * %03d = %d\n",
@@ -586,7 +585,7 @@ printf( " Tasks - maximum_tasks * %d\n", PER_TASK );
printf( " Timers - maximum_timers * %d\n", PER_TIMER );
printf( " Semaphores - maximum_semaphores * %d\n", PER_SEMAPHORE);
printf( " Message Queues - maximum_message_queues * %d\n", PER_MSGQ );
printf( " Messages - maximum_messages * %d\n", PER_MSG );
printf( " Messages -\n");
printf( " Regions - maximum_regions * %d\n", PER_REGN );
printf( " Partitions - maximum_partitions * %d\n", PER_PART );
printf( " Ports - maximum_ports * %d\n", PER_PORT );

View File

@@ -11,7 +11,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$
* tmacros.h,v 1.2 1995/05/31 17:00:10 joel Exp
*/
#ifndef __TMACROS_h
@@ -69,7 +69,7 @@ extern "C" {
#define pause_and_screen_number( _screen ) \
do { \
char buffer[ 80 ]; \
printf( "<pause - screen %d> ", (_screen) ); fflush( stdout ); \
printf( "<pause - screen %d>", (_screen) ); fflush( stdout ); \
gets( buffer ); \
puts( "" ); \
} while ( 0 )

View File

@@ -11,7 +11,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$
* timesys.h,v 1.2 1995/05/31 17:13:45 joel Exp
*/

View File

@@ -10,14 +10,12 @@
* 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:14:01 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:14:12 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:14:23 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:14:33 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:14:43 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:14:54 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:15:05 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:15:15 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -10,14 +10,12 @@
* 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:15:26 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -8,7 +8,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$
* task1.c,v 1.2 1995/05/31 17:15:28 joel Exp
*/
#include "system.h"
@@ -57,6 +57,7 @@ rtems_task Test_task (
rtems_message_queue_create(
1,
OPERATION_COUNT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -103,6 +104,7 @@ void queue_test()
rtems_unsigned32 iterations;
long buffer[4];
rtems_status_code status;
rtems_unsigned32 size;
send_loop_time = 0;
urgent_loop_time = 0;
@@ -134,7 +136,7 @@ void queue_test()
Timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_message_queue_send( Queue_id, (long (*)[4])buffer );
(void) rtems_message_queue_send( Queue_id, (long (*)[4])buffer, 16 );
send_time += Read_timer();
Timer_initialize();
@@ -142,6 +144,7 @@ void queue_test()
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -149,7 +152,7 @@ void queue_test()
Timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_message_queue_urgent( Queue_id, (long (*)[4])buffer );
(void) rtems_message_queue_urgent( Queue_id, (long (*)[4])buffer, 16 );
urgent_time += Read_timer();
Timer_initialize();
@@ -157,6 +160,7 @@ void queue_test()
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4])buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -169,7 +173,8 @@ void queue_test()
/* send one message to flush */
status = rtems_message_queue_send(
Queue_id,
(long (*)[4])buffer
(long (*)[4])buffer,
16
);
directive_failed( status, "rtems_message_queue_send" );

View File

@@ -10,14 +10,12 @@
* 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:15:37 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -8,7 +8,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$
* task1.c,v 1.2 1995/05/31 17:15:39 joel Exp
*/
#include "system.h"
@@ -51,6 +51,7 @@ rtems_task Init(
void test_init()
{
rtems_unsigned32 index;
rtems_unsigned32 size;
rtems_task_entry task_entry;
rtems_status_code status;
rtems_task_priority priority;
@@ -82,6 +83,7 @@ void test_init()
status = rtems_message_queue_create(
1,
OPERATION_COUNT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -97,6 +99,7 @@ void test_init()
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_NO_WAIT,
RTEMS_NO_TIMEOUT
);
@@ -116,10 +119,13 @@ rtems_task High_task(
rtems_task_argument argument
)
{
rtems_unsigned32 size;
Timer_initialize();
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -129,9 +135,12 @@ rtems_task Middle_tasks(
rtems_task_argument argument
)
{
rtems_unsigned32 size;
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -10,14 +10,12 @@
* 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:15:48 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -8,7 +8,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$
* task1.c,v 1.2 1995/05/31 17:15:50 joel Exp
*/
#include "system.h"
@@ -78,6 +78,7 @@ rtems_task test_init(
status = rtems_message_queue_create(
rtems_build_name( 'M', 'Q', '1', ' ' ),
OPERATION_COUNT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -106,30 +107,36 @@ rtems_task test_init(
}
Timer_initialize();
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer );
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer, 16 );
}
rtems_task Middle_tasks(
rtems_task_argument argument
)
{
rtems_unsigned32 size;
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer );
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer, size );
}
rtems_task High_task(
rtems_task_argument argument
)
{
rtems_unsigned32 size;
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -10,14 +10,12 @@
* 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:15:59 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

View File

@@ -8,7 +8,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$
* task1.c,v 1.2 1995/05/31 17:16:00 joel Exp
*/
#include "system.h"
@@ -74,6 +74,7 @@ rtems_task test_init(
status = rtems_message_queue_create(
rtems_build_name( 'M', 'Q', '1', ' ' ),
OPERATION_COUNT,
16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -115,7 +116,7 @@ rtems_task High_task(
Timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer );
(void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer, 16 );
end_time = Read_timer();
put_time(
@@ -133,9 +134,12 @@ rtems_task Low_tasks(
rtems_task_argument argument
)
{
rtems_unsigned32 size;
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
&size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);

View File

@@ -10,14 +10,12 @@
* 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:16:11 joel Exp
*/
#include <rtems.h>
#include <coverhd.h>
#include <tmacros.h>
#include "coverhd.h"
#include "tmacros.h"
#include "timesys.h"
#include "timegvar.h"
#include <timesys.h>
#include <timegvar.h>

Some files were not shown because too many files have changed in this diff Show More