Ticket #1940: console.patch

File console.patch, 1.4 KB (added by Ralf Corsepius, on 10/20/11 at 10:47:40)

patch

  • c/src/libchip/serial/ns16550.c

    diff --git a/c/src/libchip/serial/ns16550.c b/c/src/libchip/serial/ns16550.c
    index 5ea50bd..069a4cd 100644
    a b NS16550_STATIC int ns16550_close( 
    203203  void    * arg
    204204)
    205205{
    206   console_tbl *c = &Console_Port_Tbl [minor];
     206  console_tbl *c = Console_Port_Tbl [minor];
    207207
    208208  /*
    209209   * Negate DTR
    NS16550_STATIC void ns16550_enable_interrupts( 
    601601NS16550_STATIC void ns16550_initialize_interrupts( int minor)
    602602{
    603603#if defined(BSP_FEATURE_IRQ_EXTENSION) || defined(BSP_FEATURE_IRQ_LEGACY)
    604   console_tbl *c = &Console_Port_Tbl [minor];
     604  console_tbl *c = Console_Port_Tbl [minor];
    605605#endif
    606606  console_data *d = &Console_Port_Data [minor];
    607607
    NS16550_STATIC void ns16550_cleanup_interrupts(int minor) 
    661661{
    662662  #if defined(BSP_FEATURE_IRQ_EXTENSION)
    663663    rtems_status_code sc = RTEMS_SUCCESSFUL;
    664     console_tbl *c = &Console_Port_Tbl [minor];
     664    console_tbl *c = Console_Port_Tbl [minor];
    665665    sc = rtems_interrupt_handler_remove(
    666666      c->ulIntVector,
    667667      ns16550_isr,
    NS16550_STATIC void ns16550_cleanup_interrupts(int minor) 
    674674    }
    675675  #elif defined(BSP_FEATURE_IRQ_LEGACY)
    676676    int rv = 0;
    677     console_tbl *c = &Console_Port_Tbl [minor];
     677    console_tbl *c = Console_Port_Tbl [minor];
    678678    rtems_irq_connect_data cd = {
    679679      .name = c->ulIntVector,
    680680      .hdl = ns16550_isr,