Changeset 069ed6c5 in rtems


Ignore:
Timestamp:
Oct 16, 2009, 10:14:01 PM (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
532add7
Parents:
9f6aaf7
Message:

2009-10-17 Chris Johns <chrisj@…>

  • shared/irq/idt.c: Check is the irq handlers are present before calling.
  • shared/comm/i386-stub-glue.c: Revert the change of 2009-05-06 as the handlers need to be present. Fixed the warnings.
Location:
c/src/lib/libbsp/i386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/ChangeLog

    r9f6aaf7 r069ed6c5  
     12009-10-17      Chris Johns <chrisj@rtems.org>
     2
     3        * shared/irq/idt.c: Check is the irq handlers are present before
     4        calling.
     5        * shared/comm/i386-stub-glue.c: Revert the change of 2009-05-06 as
     6        the handlers need to be present. Fixed the warnings.
     7
    182009-10-01      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c

    r9f6aaf7 r069ed6c5  
    2121void exceptionHandler(int, void (*handler)(void));
    2222
     23static void
     24nop(const rtems_raw_irq_connect_data* notused)
     25{
     26}
     27
     28static int
     29isOn(const rtems_raw_irq_connect_data* notused)
     30{
     31  return 1;
     32}
     33
    2334void BSP_loop(int uart);
    2435
     
    3748  uart_current = uart;
    3849
    39   BSP_uart_init(uart, 38400, CHR_8_BITS, 0, 0, 0);
     50  /* BSP_uart_init(uart, 38400, CHR_8_BITS, 0, 0, 0);*/
     51  BSP_uart_init(uart, 115200, CHR_8_BITS, 0, 0, 0);
    4052}
    4153
     
    153165    }
    154166
    155   excep_raw_irq_data.on = NULL;
    156   excep_raw_irq_data.off = NULL;
    157   excep_raw_irq_data.isOn = NULL;
     167  excep_raw_irq_data.on = nop;
     168  excep_raw_irq_data.off = nop;
     169  excep_raw_irq_data.isOn = isOn;
    158170  excep_raw_irq_data.hdl = handler;
    159171
  • c/src/lib/libbsp/i386/shared/irq/idt.c

    r9f6aaf7 r069ed6c5  
    8888    raw_irq_table [irq->idtIndex] = *irq;
    8989    create_interrupt_gate_descriptor (&idt_entry_tbl[irq->idtIndex], irq->hdl);
    90     irq->on(irq);
     90    if (irq->on)
     91      irq->on(irq);
    9192
    9293    rtems_interrupt_enable(level);
     
    169170    idt_entry_tbl[irq->idtIndex] = default_idt_entry;
    170171
    171     irq->off(irq);
     172    if (irq->off)
     173      irq->off(irq);
    172174
    173175    raw_irq_table[irq->idtIndex] = default_raw_irq_entry;
Note: See TracChangeset for help on using the changeset viewer.