Changeset 96e6a86c in rtems


Ignore:
Timestamp:
03/28/02 19:32:16 (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ff47e5b
Parents:
0a32a21
Message:

2001-03-28 Joel Sherrill <joel@…>

  • PR132 requested some tinkering ot lower memory.
  • include/confdefs.h: Lowered footprint of device driver table and statically configure user extensions. Now if no static extensions are configured, then the table is not instantiated.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/sapi/ChangeLog

    r0a32a21 r96e6a86c  
     12001-03-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * PR132 requested some tinkering ot lower memory.
     4        * include/confdefs.h: Lowered footprint of device driver table
     5        and statically configure user extensions.  Now if no static
     6        extensions are configured, then the table is not instantiated.
     7
    182002-03-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/exec/sapi/include/confdefs.h

    r0a32a21 r96e6a86c  
    294294  DEVNULL_DRIVER_TABLE_ENTRY,
    295295#endif
     296#ifdef CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
    296297  NULL_DRIVER_TABLE_ENTRY
     298#elif !defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) && \
     299    !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \
     300    !defined(CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER) && \
     301    !defined(CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER)
     302  NULL_DRIVER_TABLE_ENTRY
     303#endif
    297304};
    298305#endif
     
    305312 */
    306313
     314#define CONFIGURE_NUMBER_OF_DRIVERS \
     315  ((sizeof(Device_drivers) / sizeof(rtems_driver_address_table)))
     316
    307317#ifndef CONFIGURE_MAXIMUM_DRIVERS
    308 #define CONFIGURE_MAXIMUM_DRIVERS   10
     318#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS
    309319#endif
    310320
     
    431441#endif
    432442
     443#if defined(CONFIGURE_INITIAL_EXTENSIONS) || \
     444    defined(STACK_CHECKER_ON)
    433445rtems_extensions_table Configuration_Initial_Extensions[] = {
    434446#ifdef CONFIGURE_INITIAL_EXTENSIONS
     
    438450    STACK_CHECKER_EXTENSION,
    439451#endif
    440     { NULL, NULL, NULL, NULL, NULL, NULL, NULL }
    441452};
    442453
     454#define CONFIGURE_INITIAL_EXTENSION_TABLE Configuration_Initial_Extensions
    443455#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS \
    444456  ((sizeof(Configuration_Initial_Extensions) / \
    445     sizeof(rtems_extensions_table)) - 1)
     457    sizeof(rtems_extensions_table)))
     458#else
     459#define CONFIGURE_INITIAL_EXTENSION_TABLE NULL
     460#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS 0
     461#endif
     462
    446463
    447464#endif
     
    10041021  CONFIGURE_MAXIMUM_DEVICES,
    10051022  CONFIGURE_MAXIMUM_DRIVERS,
    1006   sizeof (Device_drivers)/
    1007     sizeof(rtems_driver_address_table),      /* number of device drivers */
     1023  CONFIGURE_NUMBER_OF_DRIVERS,               /* number of device drivers */
    10081024  Device_drivers,                            /* pointer to driver table */
    10091025  CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS,    /* number of initial extensions */
    1010   Configuration_Initial_Extensions,          /* pointer to initial extensions */
     1026  CONFIGURE_INITIAL_EXTENSION_TABLE,         /* pointer to initial extensions */
    10111027  CONFIGURE_MULTIPROCESSING_TABLE,           /* pointer to MP config table */
    10121028  &Configuration_RTEMS_API,                  /* pointer to RTEMS API config */
  • cpukit/sapi/ChangeLog

    r0a32a21 r96e6a86c  
     12001-03-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * PR132 requested some tinkering ot lower memory.
     4        * include/confdefs.h: Lowered footprint of device driver table
     5        and statically configure user extensions.  Now if no static
     6        extensions are configured, then the table is not instantiated.
     7
    182002-03-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • cpukit/sapi/include/confdefs.h

    r0a32a21 r96e6a86c  
    294294  DEVNULL_DRIVER_TABLE_ENTRY,
    295295#endif
     296#ifdef CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
    296297  NULL_DRIVER_TABLE_ENTRY
     298#elif !defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) && \
     299    !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \
     300    !defined(CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER) && \
     301    !defined(CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER)
     302  NULL_DRIVER_TABLE_ENTRY
     303#endif
    297304};
    298305#endif
     
    305312 */
    306313
     314#define CONFIGURE_NUMBER_OF_DRIVERS \
     315  ((sizeof(Device_drivers) / sizeof(rtems_driver_address_table)))
     316
    307317#ifndef CONFIGURE_MAXIMUM_DRIVERS
    308 #define CONFIGURE_MAXIMUM_DRIVERS   10
     318#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS
    309319#endif
    310320
     
    431441#endif
    432442
     443#if defined(CONFIGURE_INITIAL_EXTENSIONS) || \
     444    defined(STACK_CHECKER_ON)
    433445rtems_extensions_table Configuration_Initial_Extensions[] = {
    434446#ifdef CONFIGURE_INITIAL_EXTENSIONS
     
    438450    STACK_CHECKER_EXTENSION,
    439451#endif
    440     { NULL, NULL, NULL, NULL, NULL, NULL, NULL }
    441452};
    442453
     454#define CONFIGURE_INITIAL_EXTENSION_TABLE Configuration_Initial_Extensions
    443455#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS \
    444456  ((sizeof(Configuration_Initial_Extensions) / \
    445     sizeof(rtems_extensions_table)) - 1)
     457    sizeof(rtems_extensions_table)))
     458#else
     459#define CONFIGURE_INITIAL_EXTENSION_TABLE NULL
     460#define CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS 0
     461#endif
     462
    446463
    447464#endif
     
    10041021  CONFIGURE_MAXIMUM_DEVICES,
    10051022  CONFIGURE_MAXIMUM_DRIVERS,
    1006   sizeof (Device_drivers)/
    1007     sizeof(rtems_driver_address_table),      /* number of device drivers */
     1023  CONFIGURE_NUMBER_OF_DRIVERS,               /* number of device drivers */
    10081024  Device_drivers,                            /* pointer to driver table */
    10091025  CONFIGURE_NUMBER_OF_INITIAL_EXTENSIONS,    /* number of initial extensions */
    1010   Configuration_Initial_Extensions,          /* pointer to initial extensions */
     1026  CONFIGURE_INITIAL_EXTENSION_TABLE,         /* pointer to initial extensions */
    10111027  CONFIGURE_MULTIPROCESSING_TABLE,           /* pointer to MP config table */
    10121028  &Configuration_RTEMS_API,                  /* pointer to RTEMS API config */
Note: See TracChangeset for help on using the changeset viewer.