forked from Imagelibrary/rtems
The word "RTEMS" almost completely removed from the core.
Configuration Table Template file added and all tests modified to use this. All gvar.h and conftbl.h files removed from test directories. Configuration parameter maximum_devices added. Core semaphore and mutex handlers added and RTEMS API Semaphore Manager updated to reflect this. Initialization sequence changed to invoke API specific initialization routines. Initialization tasks table now owned by RTEMS Tasks Manager. Added user extension for post-switch. Utilized user extensions to implement API specific functionality like signal dispatching. Added extensions to the System Initialization Thread so that an API can register a function to be invoked while the system is being initialized. These are largely equivalent to the pre-driver and post-driver hooks. Added the Modules file oar-go32_p5, modified oar-go32, and modified the file make/custom/go32.cfg to look at an environment varable which determines what CPU model is being used. All BSPs updated to reflect named devices and clock driver's IOCTL used by the Shared Memory Driver. Also merged clock isr into main file and removed ckisr.c where possible. Updated spsize to reflect new and moved variables. Makefiles for the executive source and include files updated to show break down of files into Core, RTEMS API, and Neither. Header and inline files installed into subdirectory based on whether logically in the Core or a part of the RTEMS API.
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/heap.h>
|
||||
#include <rtems/thread.h>
|
||||
#include <rtems.h>
|
||||
|
||||
void b() {}
|
||||
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "app.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
49
testsuites/libtests/stackchk/system.h
Normal file
49
testsuites/libtests/stackchk/system.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* system.h
|
||||
*
|
||||
* This include file contains information that is included in every
|
||||
* function in the test set.
|
||||
*
|
||||
* COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
* All rights assigned to U.S. Government, 1994.
|
||||
*
|
||||
* This material may be reproduced by or for the U.S. Government pursuant
|
||||
* 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$
|
||||
*/
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* macros */
|
||||
|
||||
#define TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE*3)
|
||||
|
||||
/* functions */
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1_through_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void blow_stack( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
@@ -14,7 +14,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "app.h"
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Task_1_through_3(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,30 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_GLOBAL
|
||||
|
||||
#include <gvar.h>
|
||||
#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 */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,28 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
#include "gvar.h"
|
||||
/* variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,41 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_timer_service_routine Delayed_send_event(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
#include "gvar.h"
|
||||
#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 rtems_unsigned32 remote_node;
|
||||
TEST_EXTERN rtems_id remote_tid;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,30 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
#include "gvar.h"
|
||||
#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 */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,44 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_asr Process_asr( rtems_signal_set );
|
||||
|
||||
#include "gvar.h"
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
#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 */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,15 +16,35 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* functions */
|
||||
|
||||
/* Miscellaneous */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
/* structures */
|
||||
#include <confdefs.h>
|
||||
|
||||
#include "gvar.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[ 4 ]; /* array of timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 4 ]; /* array of timer names */
|
||||
|
||||
TEST_EXTERN volatile rtems_boolean Stop_Test;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,12 +16,35 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
/* functions */
|
||||
|
||||
/* macros */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#include "gvar.h"
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
|
||||
#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[ 4 ]; /* array of timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 4 ]; /* array of timer names */
|
||||
|
||||
TEST_EXTERN volatile rtems_boolean Stop_Test;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,34 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
|
||||
|
||||
#include "gvar.h"
|
||||
#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 Semaphore_id[ 2 ]; /* array of semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,43 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
void Receive_messages( void );
|
||||
|
||||
#include "gvar.h"
|
||||
void Send_messages( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
|
||||
#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 Queue_id[ 2 ]; /* array of message queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 2 ]; /* array of message queue names */
|
||||
|
||||
extern char buffer1[16];
|
||||
extern char buffer2[16];
|
||||
extern char buffer3[16];
|
||||
extern char buffer4[16];
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -28,11 +28,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,47 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Test_task1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Test_task2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Test_task3(
|
||||
rtems_task_argument restart
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#if ( NODE_NUMBER == 1 )
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#endif
|
||||
|
||||
/* structures */
|
||||
#include <confdefs.h>
|
||||
|
||||
#include "gvar.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 Queue_id[ 2 ]; /* array of message queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 2 ]; /* array of message queue names */
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 2 ]; /* array of semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -25,11 +25,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_unsigned8 my_partition[0x30000] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
|
||||
@@ -16,14 +16,39 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS 0
|
||||
#define CONFIGURE_MP_MAXIMUM_PROXIES 0
|
||||
|
||||
#if ( NODE_NUMBER == 1 )
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 1
|
||||
#endif
|
||||
|
||||
#include "gvar.h"
|
||||
#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 Queue_id[ 2 ]; /* array of message queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 2 ]; /* array of message queue names */
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 2 ]; /* array of semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -27,11 +27,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_unsigned8 Partition_area[ 1024 ] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
|
||||
@@ -16,14 +16,38 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
#define PT_NAME rtems_build_name( 'P', 'A', 'R', '\0' )
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
/* functions */
|
||||
|
||||
/* macros */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS 1
|
||||
#define CONFIGURE_MP_MAXIMUM_PROXIES 0
|
||||
|
||||
#if ( NODE_NUMBER == 1 )
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 1
|
||||
#elif ( NODE_NUMBER == 2 )
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 2
|
||||
#endif
|
||||
|
||||
#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 Partition_id[ 2 ]; /* array of partition ids */
|
||||
TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,43 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_task Test_task2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#include "gvar.h"
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#if ( NODE_NUMBER == 1 )
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#endif
|
||||
|
||||
#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 Queue_id[ 2 ]; /* array of message queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 2 ]; /* array of message queue names */
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 2 ]; /* array of semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,13 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
#include "bsp.h"
|
||||
|
||||
rtems_unsigned8 my_partition[0x30000] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
|
||||
@@ -15,16 +15,101 @@
|
||||
*/
|
||||
|
||||
#include <tmacros.h>
|
||||
#include <mpci.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_timer_service_routine Delayed_send_event(
|
||||
rtems_id timer_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#include "gvar.h"
|
||||
rtems_task Delayed_events_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Message_queue_task(
|
||||
rtems_task_argument index
|
||||
);
|
||||
|
||||
rtems_task Partition_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Semaphore_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void Exit_test( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 1
|
||||
#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
|
||||
|
||||
#if ( NODE_NUMBER == 1 )
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 12
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 1
|
||||
#elif ( NODE_NUMBER == 2 )
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 2
|
||||
#endif
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* variables */
|
||||
|
||||
TEST_EXTERN rtems_id Event_task_id[ 2 ]; /* event task ids */
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_task_id[ 2 ]; /* semaphore task ids */
|
||||
TEST_EXTERN rtems_name Semaphore_task_name[ 2 ]; /* semaphore task names */
|
||||
|
||||
TEST_EXTERN rtems_id Queue_task_id[ 3 ]; /* message queue task ids */
|
||||
TEST_EXTERN rtems_name Queue_task_name[ 3 ]; /* message queue task names */
|
||||
|
||||
TEST_EXTERN rtems_id Partition_task_id[ 4 ]; /* partition task ids */
|
||||
TEST_EXTERN rtems_name Partition_task_name[ 4 ]; /* partition task names */
|
||||
|
||||
TEST_EXTERN rtems_id Partition_id[ 3 ]; /* partition ids */
|
||||
TEST_EXTERN rtems_name Partition_name[ 3 ]; /* partition names */
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 3 ]; /* semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 3 ]; /* semaphore names */
|
||||
|
||||
TEST_EXTERN rtems_id Queue_id[ 3 ]; /* message queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 3 ]; /* message queue names */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* remote event task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* remote event task names */
|
||||
|
||||
TEST_EXTERN rtems_id Timer_id[ 4 ]; /* event timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 4 ]; /* event timer names */
|
||||
|
||||
TEST_EXTERN rtems_unsigned32 Msg_buffer[ 4 ][ 4 ];
|
||||
|
||||
extern rtems_multiprocessing_table Multiprocessing_configuration;
|
||||
|
||||
TEST_EXTERN volatile rtems_boolean Stop_Test;
|
||||
TEST_EXTERN rtems_id timer_id;
|
||||
|
||||
#define EVENT_TASK_DOT_COUNT 100
|
||||
#define EVENT_SEND_DOT_COUNT 100
|
||||
#define DELAYED_EVENT_DOT_COUNT 1000
|
||||
#define MESSAGE_DOT_COUNT 200
|
||||
#define PARTITION_DOT_COUNT 200
|
||||
#define SEMAPHORE_DOT_COUNT 200
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,12 +21,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "shm.h"
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
@@ -41,6 +37,10 @@ rtems_task Init(
|
||||
task_name = rtems_build_name( 'T', 'A', '1', ' ' );
|
||||
status = rtems_task_create( task_name, 1, 1024,
|
||||
RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid );
|
||||
status = rtems_task_start( tid, Application_task, Mp_conf_addr.node );
|
||||
status = rtems_task_start(
|
||||
tid,
|
||||
Application_task,
|
||||
Multiprocessing_configuration.node
|
||||
);
|
||||
status = rtems_task_delete( RTEMS_SELF );
|
||||
}
|
||||
|
||||
@@ -14,19 +14,33 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
#include <libcsupport.h>
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Application_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
/*
|
||||
* Put the overrides of default configuration parameters here.
|
||||
*/
|
||||
|
||||
#include "gvar.h"
|
||||
#include <confdefs.h>
|
||||
|
||||
/* variables */
|
||||
|
||||
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,11 +21,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
#define ARGUMENT 0
|
||||
|
||||
|
||||
@@ -11,21 +11,32 @@
|
||||
* 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.
|
||||
*
|
||||
* system.h,v 1.2 1995/05/31 17:05:38 joel Exp
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Application_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -14,18 +14,28 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task main_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_INIT_TASK_ENTRY_POINT main_task
|
||||
#define CONFIGURE_INIT_TASK_NAME rtems_build_name( 'C', 'T', 'O', 'R' )
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,11 +21,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#include <stdio.h>
|
||||
|
||||
rtems_task Init(
|
||||
|
||||
@@ -14,19 +14,22 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <tmacros.h>
|
||||
|
||||
#include <stdio.h>
|
||||
/* functions */
|
||||
|
||||
/* Miscellaneous */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
/* configuration information */
|
||||
|
||||
/* macros */
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
|
||||
/* structures */
|
||||
#include <confdefs.h>
|
||||
|
||||
#include "gvar.h"
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,11 +21,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
extern int paranoia(int, char **);
|
||||
|
||||
|
||||
@@ -14,18 +14,23 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include "gvar.h"
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,11 +21,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,28 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Test_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,28 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1_through_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -19,14 +19,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$
|
||||
* init.c,v 1.2 1995/05/31 17:06:49 joel Exp
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -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$
|
||||
* preempt.c,v 1.2 1995/05/31 17:06:51 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
|
||||
@@ -16,15 +16,43 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Preempt_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#include "gvar.h"
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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 Preempt_task_id; /* preempt task id */
|
||||
TEST_EXTERN rtems_name Preempt_task_name; /* preempt task name */
|
||||
|
||||
/* end of include 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.2 1995/05/31 17:06:56 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
|
||||
@@ -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$
|
||||
* task2.c,v 1.2 1995/05/31 17:06:58 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
|
||||
@@ -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:07:00 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,32 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_extensions_table Extensions = {
|
||||
NULL, /* task create user extension */
|
||||
@@ -34,6 +31,7 @@ rtems_extensions_table Extensions = {
|
||||
NULL, /* task restart user extension */
|
||||
NULL, /* task delete user extension */
|
||||
Task_switch, /* task switch user extension */
|
||||
NULL, /* task post switch user extension */
|
||||
NULL, /* task begin user extension */
|
||||
NULL, /* task exitted user extension */
|
||||
NULL /* fatal error user extension */
|
||||
|
||||
@@ -16,14 +16,50 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void Task_switch(
|
||||
rtems_tcb *unused,
|
||||
rtems_tcb *heir
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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 Extension_id[ 4 ];
|
||||
TEST_EXTERN rtems_name Extension_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* array of task run counts */
|
||||
TEST_EXTERN volatile rtems_unsigned32 Run_count[ 4 ];
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,38 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,41 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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_task_argument Argument; /* generic task argument */
|
||||
TEST_EXTERN rtems_task_argument Restart_argument; /* task 1 restart argument */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_extensions_table Extensions = {
|
||||
Task_create_extension, /* task create user extension */
|
||||
@@ -34,6 +31,7 @@ rtems_extensions_table Extensions = {
|
||||
Task_restart_extension, /* task restart user extension */
|
||||
Task_delete_extension, /* task delete user extension */
|
||||
NULL, /* task switch user extension */
|
||||
NULL, /* task post switch user extension */
|
||||
NULL, /* begin user extension */
|
||||
Task_exit_extension, /* task exitted user extension */
|
||||
NULL /* fatal error extension */
|
||||
|
||||
@@ -16,19 +16,70 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* constants */
|
||||
/* functions */
|
||||
|
||||
#define SI_NAME 0x53595349 /* name - "SYSI" */
|
||||
#define I_NAME 0x49444c45 /* name - "IDLE" */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* Miscellaneous */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_boolean Task_create_extension(
|
||||
rtems_tcb *unused,
|
||||
rtems_tcb *created_task
|
||||
);
|
||||
|
||||
rtems_extension Task_delete_extension(
|
||||
rtems_tcb *running_task,
|
||||
rtems_tcb *deleted_task
|
||||
);
|
||||
|
||||
rtems_extension Task_restart_extension(
|
||||
rtems_tcb *unused,
|
||||
rtems_tcb *restarted_task
|
||||
);
|
||||
|
||||
rtems_extension Task_start_extension(
|
||||
rtems_tcb *unused,
|
||||
rtems_tcb *started_task
|
||||
);
|
||||
|
||||
rtems_extension Task_exit_extension(
|
||||
rtems_tcb *running_task
|
||||
);
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
/* configuration information */
|
||||
|
||||
/* macros */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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 Extension_id[ 4 ];
|
||||
TEST_EXTERN rtems_name Extension_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_extension Task_create_extension(
|
||||
rtems_boolean Task_create_extension(
|
||||
rtems_tcb *unused,
|
||||
rtems_tcb *created_task
|
||||
)
|
||||
@@ -31,4 +31,5 @@ rtems_extension Task_create_extension(
|
||||
put_name( Task_name[ task_number( created_task->Object.id ) ], FALSE );
|
||||
puts( " - created." );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,17 +16,33 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
|
||||
/* macros */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#define put_mode( _comment, _output_mode ) \
|
||||
printf( "%s %08x\n", _comment, _output_mode );
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,124 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_timer_service_routine Delayed_routine(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
/* structures */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#include "gvar.h"
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_isr Service_routine(
|
||||
rtems_vector_number ignored
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Io_during_interrupt(
|
||||
rtems_id ignored
|
||||
);
|
||||
|
||||
void Screen1( void );
|
||||
|
||||
void Screen2( void );
|
||||
|
||||
void Screen3( void );
|
||||
|
||||
void Screen4( void );
|
||||
|
||||
void Screen5( void );
|
||||
|
||||
void Screen6( void );
|
||||
|
||||
void Screen7( void );
|
||||
|
||||
void Screen8( void );
|
||||
|
||||
void Screen9( void );
|
||||
|
||||
void Screen10( void );
|
||||
|
||||
void Screen11( void );
|
||||
|
||||
void Screen12( void );
|
||||
|
||||
void Screen13( void );
|
||||
|
||||
void Screen14( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 2
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 1
|
||||
#define CONFIGURE_MAXIMUM_REGIONS 1
|
||||
#define CONFIGURE_MAXIMUM_PERIODS 1
|
||||
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 11 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 11 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_name Timer_name[ 2 ]; /* array of timer names */
|
||||
TEST_EXTERN rtems_id Timer_id[ 2 ]; /* array of timer ids */
|
||||
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 4 ]; /* array of semaphore ids */
|
||||
|
||||
TEST_EXTERN rtems_name Queue_name[ 3 ]; /* array of queue names */
|
||||
TEST_EXTERN rtems_id Queue_id[ 3 ]; /* array of queue ids */
|
||||
|
||||
TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
|
||||
TEST_EXTERN rtems_id Partition_id[ 2 ]; /* array of partition ids */
|
||||
|
||||
TEST_EXTERN rtems_name Region_name[ 2 ]; /* array of region names */
|
||||
TEST_EXTERN rtems_id Region_id[ 2 ]; /* array of region ids */
|
||||
|
||||
TEST_EXTERN rtems_name Port_name[ 2 ]; /* array of port names */
|
||||
TEST_EXTERN rtems_id Port_id[ 2 ]; /* array of port ids */
|
||||
|
||||
TEST_EXTERN rtems_name Period_name[ 2 ]; /* array of period names */
|
||||
TEST_EXTERN rtems_id Period_id[ 2 ]; /* array of period ids */
|
||||
|
||||
TEST_EXTERN rtems_id Junk_id; /* id used to return errors */
|
||||
|
||||
#define Internal_port_area (void *) 0x00001000
|
||||
#define External_port_area (void *) 0x00002000
|
||||
|
||||
TEST_EXTERN rtems_unsigned8 Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
|
||||
#define Partition_bad_area (void *) 0x00000006
|
||||
|
||||
TEST_EXTERN rtems_unsigned32 Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
#define Region_bad_area (void *) 0x00000006
|
||||
#define REGION_START_OFFSET 1024
|
||||
#define REGION_LENGTH 512
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,73 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_18_to_self_5_seconds(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_8_to_self_60_seconds(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_9_to_self_60_seconds(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_10_to_self(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_1_to_self_every_second(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA1_send_11_to_self(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_timer_service_routine TA2_send_10_to_self(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 6
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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[ 7 ]; /* array of timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 7 ]; /* array of timer names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -35,7 +35,7 @@ PRI5 - rtems_semaphore_release - nested
|
||||
PRI5 - rtems_semaphore_release - restore priority
|
||||
PRI5 - priority of PRI5 is 68
|
||||
<pause>
|
||||
TA1 - rtems_semaphore_ident - smid => 10010001
|
||||
TA1 - rtems_semaphore_ident - smid => 10010002
|
||||
TA1 - rtems_semaphore_obtain - wait forever on SM2
|
||||
TA1 - got SM2
|
||||
TA1 - rtems_semaphore_obtain - wait forever on SM3
|
||||
|
||||
@@ -16,14 +16,64 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void Priority_test_driver(
|
||||
rtems_unsigned32 priority_base
|
||||
);
|
||||
|
||||
rtems_task Priority_task(
|
||||
rtems_task_argument its_index
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task5(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 10
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 6 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_id Priority_task_id[ 6 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Priority_task_name[ 6 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_task_priority Task_priority[ 6 ];
|
||||
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 4 ]; /* array of semaphore ids */
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,14 +16,51 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void Fill_buffer(
|
||||
char source[],
|
||||
long *buffer
|
||||
);
|
||||
|
||||
void Put_buffer(
|
||||
long *buffer
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 10
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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 Queue_id[ 4 ]; /* array of queue ids */
|
||||
TEST_EXTERN rtems_name Queue_name[ 4 ]; /* array of queue names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -273,12 +273,10 @@ pause();
|
||||
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);
|
||||
/* printf("TA1 - message queue size: %d\n", queue_size); */
|
||||
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,61 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Signal_3_to_task_1(
|
||||
rtems_id id,
|
||||
void *pointer
|
||||
);
|
||||
|
||||
rtems_asr Process_asr(
|
||||
rtems_signal_set the_signal_set
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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[ 3 ]; /* array of timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 3 ]; /* array of timer names */
|
||||
|
||||
TEST_EXTERN volatile rtems_unsigned32 Signals_sent;
|
||||
/* set to TRUE to indicate that a */
|
||||
/* signal set has been sent from */
|
||||
/* an ISR to the executing task */
|
||||
|
||||
TEST_EXTERN volatile rtems_unsigned32 Asr_fired;
|
||||
/* set to TRUE to indicate that the */
|
||||
/* RTEMS_ASR has executed and was */
|
||||
/* passed the correct signal set */
|
||||
|
||||
TEST_EXTERN volatile rtems_id Timer_got_this_id;
|
||||
|
||||
TEST_EXTERN volatile void *Timer_got_this_pointer;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,43 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 2
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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_name Partition_id[ 4 ]; /* array of partition ids */
|
||||
TEST_EXTERN rtems_name Partition_name[ 4 ]; /* array of partition names */
|
||||
|
||||
TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
TEST_EXTERN rtems_unsigned8 Area_2[274] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
#define Put_address_from_area_1( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
|
||||
|
||||
#define Put_address_from_area_2( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,16 +16,68 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task5(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define BASE_PRIORITY 140 /* all tasks priority */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
/* macros */
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_MAXIMUM_REGIONS 4
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#include "gvar.h"
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 6 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */
|
||||
TEST_EXTERN rtems_id Region_id[ 5 ]; /* array of region ids */
|
||||
TEST_EXTERN rtems_name Region_name[ 5 ]; /* array of region names */
|
||||
|
||||
TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
TEST_EXTERN rtems_unsigned8 Area_2[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
TEST_EXTERN rtems_unsigned8 Area_3[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
#define BASE_PRIORITY 140
|
||||
|
||||
#define Put_address_from_area_1( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
|
||||
|
||||
#define Put_address_from_area_2( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
|
||||
|
||||
#define Put_address_from_area_3( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
|
||||
|
||||
#define Put_address_from_area_4( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,41 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_asr Process_asr(
|
||||
rtems_signal_set signal_set
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(25)
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 1000
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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_unsigned32 Task_2_preempted;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,38 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task First_FP_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task FP_task(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 7 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_id Task_name[ 7 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_double FP_factors[ 10 ]; /* FP "uniqueness" factors */
|
||||
TEST_EXTERN rtems_unsigned32 INTEGER_factors[ 10 ]; /* INT "uniqueness" factors */
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,18 +16,44 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
|
||||
/* macros */
|
||||
|
||||
/* structures */
|
||||
/* types */
|
||||
|
||||
struct counters {
|
||||
rtems_unsigned32 count[6];
|
||||
};
|
||||
|
||||
#include "gvar.h"
|
||||
/* functions */
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1_through_5(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void Get_all_counters( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_INIT_TASK_PRIORITY 10
|
||||
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
|
||||
#define CONFIGURE_MAXIMUM_PERIODS 10
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 6 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN struct counters Count; /* iteration counters */
|
||||
TEST_EXTERN struct counters Temporary_count;
|
||||
extern rtems_task_priority Priorities[ 6 ];
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,29 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_STUB_DRIVER
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,40 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Delayed_resume(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
void Print_time( void );
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 2
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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 */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,39 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* structures */
|
||||
/* configuration information */
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_PORTS 1
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 2 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 2 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_id Port_id[ 2 ]; /* array of port ids */
|
||||
TEST_EXTERN rtems_name Port_name[ 2 ]; /* array of port names */
|
||||
|
||||
#define Internal_port_area ((rtems_unsigned8 *) 0x00001000)
|
||||
#define External_port_area ((rtems_unsigned8 *) 0x00002000)
|
||||
|
||||
#define Below_port_area ((rtems_unsigned8 *) 0x00000500)
|
||||
#define Above_port_area ((rtems_unsigned8 *) 0x00003000)
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,38 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Resume_task(
|
||||
rtems_id timer_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_task Task_1_through_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 3
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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[ 4 ]; /* array of timer ids */
|
||||
TEST_EXTERN rtems_name Timer_name[ 4 ]; /* array of timer names */
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,16 +16,39 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
#define BASE_PRIORITY 140 /* all tasks priority */
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#include "gvar.h"
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_REGIONS 1
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 6 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */
|
||||
TEST_EXTERN rtems_id Region_id[ 2 ]; /* array of region ids */
|
||||
TEST_EXTERN rtems_name Region_name[ 2 ]; /* array of region names */
|
||||
|
||||
TEST_EXTERN rtems_unsigned8 Area_1[64000] CPU_STRUCTURE_ALIGNMENT;
|
||||
|
||||
#define BASE_PRIORITY 140
|
||||
|
||||
#define Put_address_from_area_1( _to_be_printed ) \
|
||||
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#define TEST_INIT
|
||||
#include "system.h"
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -16,14 +16,64 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
/* functions */
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
void put_error(
|
||||
rtems_unsigned32 error,
|
||||
rtems_status_code expected
|
||||
);
|
||||
|
||||
rtems_extension Fatal_extension(
|
||||
rtems_unsigned32 error
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
/* macros */
|
||||
/* configuration information */
|
||||
|
||||
/* structures */
|
||||
extern rtems_extensions_table initial_extensions;
|
||||
|
||||
#include "gvar.h"
|
||||
#ifdef TEST_INIT
|
||||
rtems_extensions_table initial_extensions = {
|
||||
NULL, /* create */
|
||||
NULL, /* start */
|
||||
NULL, /* restart */
|
||||
NULL, /* delete */
|
||||
NULL, /* switch */
|
||||
NULL, /* post switch */
|
||||
NULL, /* begin */
|
||||
NULL, /* exitted */
|
||||
Fatal_extension /* fatal */
|
||||
};
|
||||
#endif
|
||||
|
||||
#define CONFIGURE_SPTEST
|
||||
|
||||
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(0)
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 0
|
||||
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS &initial_extensions
|
||||
|
||||
#include <confdefs.h>
|
||||
|
||||
/* global 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_configuration_table New_Configuration;
|
||||
|
||||
extern rtems_extensions_table Extensions;
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
extern rtems_cpu_table Cpu_table;
|
||||
|
||||
/* end of include file */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user