Changeset c36fae22 in rtems


Ignore:
Timestamp:
Feb 25, 2020, 12:47:59 PM (6 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
61e2d73f
Parents:
01c97e64
git-author:
Sebastian Huber <sebastian.huber@…> (02/25/20 12:47:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/26/20 07:23:28)
Message:

config: Initialize IO drivers on demand

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    r01c97e64 rc36fae22  
    10551055librtemscpu_a_SOURCES += sapi/src/interrtext.c
    10561056librtemscpu_a_SOURCES += sapi/src/io.c
     1057librtemscpu_a_SOURCES += sapi/src/iodefault.c
    10571058librtemscpu_a_SOURCES += sapi/src/ioclose.c
    10581059librtemscpu_a_SOURCES += sapi/src/iocontrol.c
  • cpukit/include/rtems/confdefs/iodrivers.h

    r01c97e64 rc36fae22  
    4343#ifdef CONFIGURE_INIT
    4444
     45#if defined(CONFIGURE_APPLICATION_EXTRA_DRIVERS) \
     46  || defined(CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER) \
     47  || defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) \
     48  || defined(CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER) \
     49  || defined(CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER) \
     50  || defined(CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER) \
     51  || defined(CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER) \
     52  || defined(CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER) \
     53  || defined(CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER) \
     54  || CONFIGURE_MAXIMUM_DRIVERS > 0
     55
    4556#include <rtems/ioimpl.h>
     57#include <rtems/sysinit.h>
    4658
    4759#ifdef CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    151163  RTEMS_ARRAY_SIZE( _IO_Driver_address_table );
    152164
     165RTEMS_SYSINIT_ITEM(
     166  _IO_Initialize_all_drivers,
     167  RTEMS_SYSINIT_DEVICE_DRIVERS,
     168  RTEMS_SYSINIT_ORDER_MIDDLE
     169);
     170
    153171#ifdef CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER
    154172  #ifndef CONFIGURE_ATA_DRIVER_TASK_PRIORITY
     
    164182#endif
    165183
     184#endif /* CONFIGURE_APPLICATION_EXTRA_DRIVERS
     185  || CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER
     186  || CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     187  || CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER
     188  || CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER
     189  || CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER
     190  || CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
     191  || CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
     192  || CONFIGURE_APPLICATION_NEEDS_ZERO_DRIVER
     193  || CONFIGURE_MAXIMUM_DRIVERS */
     194
    166195#endif /* CONFIGURE_INIT */
    167196
  • cpukit/sapi/src/exinit.c

    r01c97e64 rc36fae22  
    2323#include <rtems/extensionimpl.h>
    2424#include <rtems/init.h>
    25 #include <rtems/ioimpl.h>
    2625#include <rtems/sysinit.h>
    2726#include <rtems/score/sysstate.h>
     
    121120);
    122121
    123 /* Initialize I/O drivers.
    124  *
    125  * Driver Manager note:
    126  * All drivers may not be registered yet. Drivers will dynamically
    127  * be initialized when registered in level 2,3 and 4.
    128  */
    129 RTEMS_SYSINIT_ITEM(
    130   _IO_Initialize_all_drivers,
    131   RTEMS_SYSINIT_DEVICE_DRIVERS,
    132   RTEMS_SYSINIT_ORDER_MIDDLE
    133 );
    134 
    135122void rtems_initialize_executive(void)
    136123{
  • testsuites/sptests/spsysinit01/init.c

    r01c97e64 rc36fae22  
    10461046#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    10471047
     1048#define CONFIGURE_APPLICATION_EXTRA_DRIVERS NULL_DRIVER_TABLE_ENTRY
     1049
    10481050#define CONFIGURE_INIT
    10491051
Note: See TracChangeset for help on using the changeset viewer.