Changeset 3a4ae6c in rtems for testsuites/samples


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/samples
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/base_mp/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "shm.h"
    28 #include "conftbl.h"
    29 #include "gvar.h"
    3026
    3127rtems_task Init(
     
    4238  status = rtems_task_create( task_name, 1, 1024,
    4339             RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid );
    44   status = rtems_task_start( tid, Application_task, Mp_conf_addr.node );
     40  status = rtems_task_start(
     41    tid,
     42    Application_task,
     43    Multiprocessing_configuration.node
     44  );
    4545  status = rtems_task_delete( RTEMS_SELF );
    4646}
  • testsuites/samples/base_mp/system.h

    r5072b07 r3a4ae6c  
    1515 */
    1616
    17 #include <rtems.h>
    18 #include <bsp.h>
    19 #include <stdio.h>
    20 #include <libcsupport.h>
     17#include <tmacros.h>
    2118
    22 /* Miscellaneous */
     19/* functions */
    2320
    24 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2524
    26 /* macros */
     25rtems_task Application_task(
     26  rtems_task_argument argument
     27);
    2728
    28 /* 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/*
     37 *  Put the overrides of default configuration parameters here.
     38 */
    2939
    30 #include "gvar.h"
     40#include <confdefs.h>
    3141
     42/* variables */
     43
     44TEST_EXTERN rtems_id Global_variable;   /* example global variable     */
     45 
    3246/* end of include file */
  • testsuites/samples/base_sp/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "conftbl.h"
    28 #include "gvar.h"
    2926
    3027#define ARGUMENT 0
  • testsuites/samples/base_sp/system.h

    r5072b07 r3a4ae6c  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  system.h,v 1.2 1995/05/31 17:05:38 joel Exp
     14 *  $Id$
    1515 */
    1616
    17 #include <rtems.h>
    18 #include <bsp.h>
    19 #include <stdio.h>
     17#include <tmacros.h>
    2018
    21 /* Miscellaneous */
     19/* functions */
    2220
    23 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2424
    25 /* macros */
     25rtems_task Application_task(
     26  rtems_task_argument argument
     27);
    2628
    27 /* structures */
     29/* configuration information */
    2830
    29 #include "gvar.h"
     31#define CONFIGURE_SPTEST
     32
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35
     36#include <confdefs.h>
     37
     38/* global variables */
     39
     40TEST_EXTERN rtems_id Global_variable;    /* example global variable     */
    3041
    3142/* end of include file */
  • testsuites/samples/cdtest/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "conftbl.h"
    28 #include "gvar.h"
    2926#include <stdio.h>
  • testsuites/samples/cdtest/system.h

    r5072b07 r3a4ae6c  
    1515 */
    1616
    17 #include <rtems.h>
    18 #include <bsp.h>
    19 #include <stdio.h>
     17#include <tmacros.h>
    2018
    21 /* Miscellaneous */
     19/* functions */
    2220
    23 #define EXTERN  extern             /* external definition */
     21rtems_task main_task(
     22  rtems_task_argument argument
     23);
    2424
    25 /* macros */
     25/* configuration information */
    2626
    27 /* structures */
     27#define CONFIGURE_SPTEST
    2828
    29 #include "gvar.h"
     29#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     30#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    3031
     32#define CONFIGURE_INIT_TASK_ENTRY_POINT   main_task
     33#define CONFIGURE_INIT_TASK_NAME          rtems_build_name( 'C', 'T', 'O', 'R' )
     34
     35#include <confdefs.h>
     36
     37/* global variables */
     38
     39TEST_EXTERN rtems_id Global_variable;   /* example global variable     */
     40 
    3141/* end of include file */
  • testsuites/samples/hello/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "conftbl.h"
    28 #include "gvar.h"
    2926#include <stdio.h>
    3027
  • testsuites/samples/hello/system.h

    r5072b07 r3a4ae6c  
    1515 */
    1616
    17 #include <rtems.h>
    18 #include <bsp.h>
     17#include <tmacros.h>
    1918
    20 #include <stdio.h>
     19/* functions */
    2120
    22 /* Miscellaneous */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2324
    24 #define EXTERN  extern             /* external definition */
     25/* configuration information */
    2526
    26 /* macros */
     27#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    2728
    28 /* structures */
     29#include <confdefs.h>
    2930
    30 #include "gvar.h"
     31/* global variables */
     32
     33TEST_EXTERN rtems_id Global_variable;   /* example global variable     */
    3134
    3235/* end of include file */
  • testsuites/samples/paranoia/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "conftbl.h"
    28 #include "gvar.h"
    2926
    3027extern int paranoia(int, char **);
  • testsuites/samples/paranoia/system.h

    r5072b07 r3a4ae6c  
    1515 */
    1616
    17 #include <rtems.h>
    18 #include <bsp.h>
    19 #include <stdio.h>
     17#include <tmacros.h>
    2018
    21 /* Miscellaneous */
     19/* functions */
    2220
    23 #define EXTERN  extern             /* external definition */
     21rtems_task Init(
     22  rtems_task_argument argument
     23);
    2424
    25 /* macros */
     25/* configuration information */
    2626
    27 /* structures */
     27#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     28#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    2829
    29 #include "gvar.h"
     30#include <confdefs.h>
     31
     32/* global variables */
     33
     34TEST_EXTERN rtems_id Global_variable;   /* example global variable     */
    3035
    3136/* end of include file */
  • testsuites/samples/ticker/init.c

    r5072b07 r3a4ae6c  
    2222 */
    2323
     24#define TEST_INIT
    2425#include "system.h"
    25 #undef EXTERN
    26 #define EXTERN
    27 #include "conftbl.h"
    28 #include "gvar.h"
    2926
    3027rtems_task Init(
  • testsuites/samples/ticker/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 */
    2630
    27 #include "gvar.h"
     31#define CONFIGURE_SPTEST
     32
     33#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
     34#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     35
     36#include <confdefs.h>
     37
     38/* global 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 */
Note: See TracChangeset for help on using the changeset viewer.