Ignore:
Timestamp:
Feb 3, 2003, 11:55:01 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b4f92a9
Parents:
50381010
Message:

2003-02-03 Joel Sherrill <joel@…>

PR 338/filesystem

  • console.c: Side-effect of fixing reentrancy problem with rtems_io_lookup_name() (API change).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sh/shared/console.c

    r50381010 rce9f3d1  
    3838#endif
    3939
    40 static rtems_driver_name_t *low_level_device_info = NULL ;
     40static rtems_driver_name_t low_level_device_info;
    4141
    4242/*  console_initialize
     
    5757)
    5858{
    59   rtems_device_driver status ;
     59  rtems_device_driver status;
    6060 
    6161  status = rtems_io_register_name(
     
    6868    rtems_fatal_error_occurred(status);
    6969
    70   status = rtems_io_lookup_name( BSP_CONSOLE_DEVNAME,
    71     &low_level_device_info );
     70  status = rtems_io_lookup_name( BSP_CONSOLE_DEVNAME, &low_level_device_info );
    7271  if (status != RTEMS_SUCCESSFUL)
    7372    rtems_fatal_error_occurred(status);
     
    8786)
    8887{
    89   return rtems_io_open( low_level_device_info->major,
    90     low_level_device_info->minor,
     88  return rtems_io_open( low_level_device_info.major,
     89    low_level_device_info.minor,
    9190    arg );
    9291}
     
    102101)
    103102{
    104   return rtems_io_close( low_level_device_info->major,
    105     low_level_device_info->minor,
     103  return rtems_io_close( low_level_device_info.major,
     104    low_level_device_info.minor,
    106105    arg );
    107106}
     
    117116)
    118117{
    119   return rtems_io_read( low_level_device_info->major,
    120     low_level_device_info->minor,
     118  return rtems_io_read( low_level_device_info.major,
     119    low_level_device_info.minor,
    121120    arg );
    122121}
     
    132131)
    133132{
    134   return rtems_io_write( low_level_device_info->major,
    135     low_level_device_info->minor,
     133  return rtems_io_write( low_level_device_info.major,
     134    low_level_device_info.minor,
    136135    arg );
    137136}
     
    147146)
    148147{
    149   return rtems_io_control( low_level_device_info->major,
    150     low_level_device_info->minor,
     148  return rtems_io_control( low_level_device_info.major,
     149    low_level_device_info.minor,
    151150    arg );
    152151}
Note: See TracChangeset for help on using the changeset viewer.