Changeset 3a4ae6c in rtems for testsuites/mptests


Ignore:
Timestamp:
Sep 11, 1995, 7:35:39 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ced11f99
Parents:
5072b07
Message:

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.

Location:
testsuites/mptests
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/mp01/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp01/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_GLOBAL
    2637
    27 #include <gvar.h>
     38#include <confdefs.h>
     39
     40/* variables */
     41
     42TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     43TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
    2844
    2945/* end of include file */
  • testsuites/mptests/mp02/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp02/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#include <confdefs.h>
    2637
    27 #include "gvar.h"
     38/* variables */
     39
     40TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     41TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
    2842
    2943/* end of include file */
  • testsuites/mptests/mp03/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp03/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29rtems_timer_service_routine Delayed_send_event(
     30  rtems_id  ignored_id,
     31  void     *ignored_address
     32);
     33 
     34/* configuration information */
     35 
     36#define CONFIGURE_MPTEST
     37 
     38#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     39#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     40 
     41#define CONFIGURE_MAXIMUM_TIMERS              1
    2642
    27 #include "gvar.h"
     43#include <confdefs.h>
    2844
     45/* variables */
     46
     47TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     48TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     49
     50TEST_EXTERN rtems_id   Timer_id[ 2 ];    /* array of timer ids */
     51TEST_EXTERN rtems_name Timer_name[ 2 ];  /* array of timer names */
     52 
     53TEST_EXTERN rtems_unsigned32  remote_node;
     54TEST_EXTERN rtems_id          remote_tid;
     55 
    2956/* end of include file */
  • testsuites/mptests/mp04/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp04/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#define CONFIGURE_MAXIMUM_TIMERS              1
    2637
    27 #include "gvar.h"
     38#include <confdefs.h>
     39
     40/* variables */
     41
     42TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     43TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
    2844
    2945/* end of include file */
  • testsuites/mptests/mp05/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp05/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29rtems_asr Process_asr( rtems_signal_set );
    2630
    27 #include "gvar.h"
     31/* configuration information */
     32 
     33#define CONFIGURE_MPTEST
     34 
     35#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     36#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     37 
     38#define CONFIGURE_MAXIMUM_TIMERS              1
    2839
     40#include <confdefs.h>
     41
     42/* variables */
     43
     44TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     45TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     46
     47TEST_EXTERN rtems_id   Timer_id[ 2 ];    /* array of timer ids */
     48TEST_EXTERN rtems_name Timer_name[ 2 ];  /* array of timer names */
     49 
     50TEST_EXTERN volatile rtems_boolean Stop_Test;
     51 
     52TEST_EXTERN rtems_unsigned32          remote_node;
     53TEST_EXTERN rtems_id                  remote_tid;
     54TEST_EXTERN rtems_signal_set          remote_signal;
     55TEST_EXTERN rtems_signal_set          expected_signal;
     56TEST_EXTERN volatile rtems_unsigned32 signal_count;
     57TEST_EXTERN volatile rtems_unsigned32 signal_caught;
     58 
    2959/* end of include file */
  • testsuites/mptests/mp06/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp06/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
     19/* functions */
    1920
    20 /* Miscellaneous */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2124
    22 #define EXTERN  extern             /* external definition */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2328
    24 /* macros */
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#define CONFIGURE_MAXIMUM_TIMERS              1
    2537
    26 /* structures */
     38#include <confdefs.h>
    2739
    28 #include "gvar.h"
     40/* variables */
     41
     42TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     43TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     44
     45TEST_EXTERN rtems_id   Timer_id[ 4 ];     /* array of timer ids */
     46TEST_EXTERN rtems_name Timer_name[ 4 ];   /* array of timer names */
     47 
     48TEST_EXTERN volatile rtems_boolean Stop_Test;
    2949
    3050/* end of include file */
  • testsuites/mptests/mp07/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp07/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 #define EXTERN  extern             /* external definition */
     19/* functions */
    2020
    21 /* macros */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* structures */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 #include "gvar.h"
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#define CONFIGURE_MAXIMUM_TIMERS              1
     37
     38#include <confdefs.h>
     39
     40/* variables */
     41
     42TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     43TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     44
     45TEST_EXTERN rtems_id   Timer_id[ 4 ];     /* array of timer ids */
     46TEST_EXTERN rtems_name Timer_name[ 4 ];   /* array of timer names */
     47 
     48TEST_EXTERN volatile rtems_boolean Stop_Test;
    2649
    2750/* end of include file */
  • testsuites/mptests/mp08/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp08/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29/* configuration information */
     30 
     31#define CONFIGURE_MPTEST
     32 
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35 
     36#define CONFIGURE_MAXIMUM_TIMERS              1
     37#define CONFIGURE_MAXIMUM_SEMAPHORES          1
    2638
    27 #include "gvar.h"
     39#include <confdefs.h>
     40
     41/* variables */
     42
     43TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     44TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     45
     46TEST_EXTERN rtems_id   Semaphore_id[ 2 ];     /* array of semaphore ids */
     47TEST_EXTERN rtems_name Semaphore_name[ 2 ];   /* array of semaphore names */
    2848
    2949/* end of include file */
  • testsuites/mptests/mp09/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp09/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29void Receive_messages( void );
    2630
    27 #include "gvar.h"
     31void Send_messages( void );
     32
     33/* configuration information */
     34 
     35#define CONFIGURE_MPTEST
     36 
     37#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     38#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     39 
     40#define CONFIGURE_MAXIMUM_TIMERS              1
     41#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
     42
     43#include <confdefs.h>
     44
     45/* variables */
     46
     47TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     48TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     49
     50TEST_EXTERN rtems_id   Queue_id[ 2 ];    /* array of message queue ids */
     51TEST_EXTERN rtems_name Queue_name[ 2 ];  /* array of message queue names */
     52 
     53extern char buffer1[16];
     54extern char buffer2[16];
     55extern char buffer3[16];
     56extern char buffer4[16];
    2857
    2958/* end of include file */
  • testsuites/mptests/mp10/init.c

    r5072b07 r3a4ae6c  
    2929 */
    3030
     31#define TEST_INIT
    3132#include "system.h"
    32 #undef EXTERN
    33 #define EXTERN
    34 #include "conftbl.h"
    35 #include "gvar.h"
    3633
    3734rtems_task Init(
  • testsuites/mptests/mp10/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
     24 
     25rtems_task Test_task1(
     26  rtems_task_argument argument
     27);
     28 
     29rtems_task Test_task2(
     30  rtems_task_argument argument
     31);
     32 
     33rtems_task Test_task3(
     34  rtems_task_argument restart
     35);
    2236
    23 /* macros */
     37/* configuration information */
     38 
     39#define CONFIGURE_MPTEST
     40 
     41#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     42#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     43 
     44#if ( NODE_NUMBER == 1 )
     45#define CONFIGURE_MAXIMUM_SEMAPHORES          1
     46#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
     47#endif
    2448
    25 /* structures */
     49#include <confdefs.h>
    2650
    27 #include "gvar.h"
     51/* variables */
     52
     53TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     54TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     55
     56TEST_EXTERN rtems_id   Queue_id[ 2 ];       /* array of message queue ids */
     57TEST_EXTERN rtems_name Queue_name[ 2 ];     /* array of message queue names */
     58
     59TEST_EXTERN rtems_id   Semaphore_id[ 2 ];   /* array of semaphore ids */
     60TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
    2861
    2962/* end of include file */
  • testsuites/mptests/mp11/init.c

    r5072b07 r3a4ae6c  
    2626 */
    2727
     28#define TEST_INIT
    2829#include "system.h"
    29 #undef EXTERN
    30 #define EXTERN
    31 #include "conftbl.h"
    32 #include "gvar.h"
    3330
    3431rtems_unsigned8 my_partition[0x30000] CPU_STRUCTURE_ALIGNMENT;
  • testsuites/mptests/mp11/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25/* configuration information */
     26 
     27#define CONFIGURE_MPTEST
     28 
     29#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     30#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    2431
    25 /* structures */
     32#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     0
     33#define CONFIGURE_MP_MAXIMUM_PROXIES            0
     34 
     35#if ( NODE_NUMBER == 1 )
     36#define CONFIGURE_MAXIMUM_SEMAPHORES          1
     37#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
     38#define CONFIGURE_MAXIMUM_PARTITIONS          1
     39#endif
    2640
    27 #include "gvar.h"
     41#include <confdefs.h>
     42
     43/* variables */
     44
     45TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     46TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     47
     48TEST_EXTERN rtems_id   Queue_id[ 2 ];       /* array of message queue ids */
     49TEST_EXTERN rtems_name Queue_name[ 2 ];     /* array of message queue names */
     50 
     51TEST_EXTERN rtems_id   Semaphore_id[ 2 ];   /* array of semaphore ids */
     52TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
    2853
    2954/* end of include file */
  • testsuites/mptests/mp12/init.c

    r5072b07 r3a4ae6c  
    2828 */
    2929
     30#define TEST_INIT
    3031#include "system.h"
    31 #undef EXTERN
    32 #define EXTERN
    33 #include "conftbl.h"
    34 #include "gvar.h"
    3532
    3633rtems_unsigned8 Partition_area[ 1024 ] CPU_STRUCTURE_ALIGNMENT;
  • testsuites/mptests/mp12/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19#define PT_NAME       rtems_build_name( 'P', 'A', 'R', '\0' )
    2020
    21 #define EXTERN  extern             /* external definition */
     21/* functions */
    2222
    23 /* macros */
     23rtems_task Init(
     24  rtems_task_argument argument
     25);
    2426
    25 /* structures */
     27/* configuration information */
     28 
     29#define CONFIGURE_MPTEST
     30 
     31#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     32#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    2633
    27 #include "gvar.h"
     34#define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     1
     35#define CONFIGURE_MP_MAXIMUM_PROXIES            0
     36 
     37#if ( NODE_NUMBER == 1 )
     38#define CONFIGURE_MAXIMUM_PARTITIONS          1
     39#elif ( NODE_NUMBER == 2 )
     40#define CONFIGURE_MAXIMUM_PARTITIONS          2
     41#endif
     42
     43#include <confdefs.h>
     44
     45/* variables */
     46
     47TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     48TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     49
     50TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
     51TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
    2852
    2953/* end of include file */
  • testsuites/mptests/mp13/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3027
    3128rtems_task Init(
  • testsuites/mptests/mp13/system.h

    r5072b07 r3a4ae6c  
    1717#include <tmacros.h>
    1818
    19 /* Miscellaneous */
     19/* functions */
    2020
    21 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2224
    23 /* macros */
     25rtems_task Test_task1(
     26  rtems_task_argument argument
     27);
    2428
    25 /* structures */
     29rtems_task Test_task2(
     30  rtems_task_argument argument
     31);
    2632
    27 #include "gvar.h"
     33/* configuration information */
     34 
     35#define CONFIGURE_MPTEST
     36 
     37#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     38#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     39
     40#if ( NODE_NUMBER == 1 )
     41#define CONFIGURE_MAXIMUM_SEMAPHORES          1
     42#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
     43#endif
     44
     45#include <confdefs.h>
     46
     47/* variables */
     48
     49TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
     50TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
     51
     52TEST_EXTERN rtems_id   Queue_id[ 2 ];       /* array of message queue ids */
     53TEST_EXTERN rtems_name Queue_name[ 2 ];     /* array of message queue names */
     54 
     55TEST_EXTERN rtems_id   Semaphore_id[ 2 ];   /* array of semaphore ids */
     56TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */
    2857
    2958/* end of include file */
  • testsuites/mptests/mp14/init.c

    r5072b07 r3a4ae6c  
    2323 */
    2424
     25#define TEST_INIT
    2526#include "system.h"
    26 #undef EXTERN
    27 #define EXTERN
    28 #include "conftbl.h"
    29 #include "gvar.h"
    30 
    31 #include "bsp.h"
    3227
    3328rtems_unsigned8 my_partition[0x30000] CPU_STRUCTURE_ALIGNMENT;
  • testsuites/mptests/mp14/system.h

    r5072b07 r3a4ae6c  
    1616
    1717#include <tmacros.h>
    18 #include <mpci.h>
    1918
    20 /* Miscellaneous */
     19/* functions */
    2120
    22 #define EXTERN  extern             /* external definition */
     21rtems_timer_service_routine Delayed_send_event(
     22  rtems_id  timer_id,
     23  void     *ignored_address
     24);
    2325
    24 /* macros */
     26rtems_task Init(
     27  rtems_task_argument argument
     28);
    2529
    26 /* structures */
     30rtems_task Test_task(
     31  rtems_task_argument argument
     32);
    2733
    28 #include "gvar.h"
     34rtems_task Delayed_events_task(
     35  rtems_task_argument argument
     36);
     37
     38rtems_task Message_queue_task(
     39  rtems_task_argument index
     40);
     41
     42rtems_task Partition_task(
     43  rtems_task_argument argument
     44);
     45
     46rtems_task Semaphore_task(
     47  rtems_task_argument argument
     48);
     49
     50void Exit_test( void );
     51
     52/* configuration information */
     53 
     54#define CONFIGURE_MPTEST
     55 
     56#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     57#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     58 
     59#define CONFIGURE_TICKS_PER_TIMESLICE   1
     60#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)
     61
     62#if ( NODE_NUMBER == 1 )
     63#define CONFIGURE_MAXIMUM_TIMERS              12
     64#define CONFIGURE_MAXIMUM_SEMAPHORES          1
     65#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
     66#define CONFIGURE_MAXIMUM_PARTITIONS          1
     67#elif ( NODE_NUMBER == 2 )
     68#define CONFIGURE_MAXIMUM_TIMERS              2
     69#endif
     70
     71#include <confdefs.h>
     72
     73/* variables */
     74
     75TEST_EXTERN rtems_id   Event_task_id[ 2 ];       /* event task ids */
     76
     77TEST_EXTERN rtems_id   Semaphore_task_id[ 2 ];   /* semaphore task ids */
     78TEST_EXTERN rtems_name Semaphore_task_name[ 2 ]; /* semaphore task names */
     79
     80TEST_EXTERN rtems_id   Queue_task_id[ 3 ];       /* message queue task ids */
     81TEST_EXTERN rtems_name Queue_task_name[ 3 ];     /* message queue task names */
     82
     83TEST_EXTERN rtems_id   Partition_task_id[ 4 ];   /* partition task ids */
     84TEST_EXTERN rtems_name Partition_task_name[ 4 ]; /* partition task names */
     85
     86TEST_EXTERN rtems_id   Partition_id[ 3 ];    /* partition ids */
     87TEST_EXTERN rtems_name Partition_name[ 3 ];  /* partition names */
     88
     89TEST_EXTERN rtems_id   Semaphore_id[ 3 ];    /* semaphore ids */
     90TEST_EXTERN rtems_name Semaphore_name[ 3 ];  /* semaphore names */
     91
     92TEST_EXTERN rtems_id   Queue_id[ 3 ];        /* message queue ids */
     93TEST_EXTERN rtems_name Queue_name[ 3 ];      /* message queue names */
     94
     95TEST_EXTERN rtems_id   Task_id[ 4 ];         /* remote event task ids */
     96TEST_EXTERN rtems_name Task_name[ 4 ];       /* remote event task names */
     97
     98TEST_EXTERN rtems_id   Timer_id[ 4 ];         /* event timer ids */
     99TEST_EXTERN rtems_name Timer_name[ 4 ];       /* event timer names */
     100
     101TEST_EXTERN rtems_unsigned32 Msg_buffer[ 4 ][ 4 ];
     102
     103extern rtems_multiprocessing_table Multiprocessing_configuration;
     104
     105TEST_EXTERN volatile rtems_boolean Stop_Test;
     106TEST_EXTERN rtems_id timer_id;
     107
     108#define EVENT_TASK_DOT_COUNT        100
     109#define EVENT_SEND_DOT_COUNT        100
     110#define DELAYED_EVENT_DOT_COUNT     1000
     111#define MESSAGE_DOT_COUNT           200
     112#define PARTITION_DOT_COUNT         200
     113#define SEMAPHORE_DOT_COUNT         200
    29114
    30115/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.