Changeset 8d6fd40 in rtems


Ignore:
Timestamp:
Apr 17, 2015, 6:45:50 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c7a6508
Parents:
a211a732
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/15 06:45:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/15 06:46:33)
Message:

sapi: Avoid declaration in source, fix type

Location:
cpukit/sapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/io.h

    ra211a732 r8d6fd40  
    255255extern rtems_driver_address_table _IO_Driver_address_table[];
    256256
     257extern bool _IO_All_drivers_initialized;
     258
    257259/**
    258260 * @brief Initialization of all device drivers.
  • cpukit/sapi/src/io.c

    ra211a732 r8d6fd40  
    2222#include <rtems/io.h>
    2323
    24 int _IO_Manager_drivers_inititalized = 0;
     24bool _IO_All_drivers_initialized;
    2525
    2626void _IO_Initialize_all_drivers( void )
     
    2828   rtems_device_major_number major;
    2929
    30    _IO_Manager_drivers_inititalized = 1;
     30   _IO_All_drivers_initialized = true;
    3131
    3232   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
  • cpukit/sapi/src/ioregisterdriver.c

    ra211a732 r8d6fd40  
    2525#include <rtems/rtems/intr.h>
    2626#include <rtems/score/threaddispatch.h>
    27 
    28 extern int _IO_Manager_drivers_inititalized;
    2927
    3028static inline bool rtems_io_is_empty_table(
     
    111109  _Thread_Enable_dispatch();
    112110
    113   if ( _IO_Manager_drivers_inititalized ) {
     111  if ( _IO_All_drivers_initialized ) {
    114112    /* Other drivers have already been initialized, we initialize
    115113     * the driver directly.
Note: See TracChangeset for help on using the changeset viewer.