diff options
author | Chris Johns <chrisj@rtems.org> | 2009-10-16 22:14:01 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-10-16 22:14:01 +0000 |
commit | 069ed6c5b49999866b5b30a732ba2e09301240c0 (patch) | |
tree | 9a3ad0fd4fff08d865774f52d3408d1f55798374 /c/src/lib/libbsp/i386/shared/comm | |
parent | 2009-10-16 Jennifer Averett <jennifer@OARcorp.com> (diff) | |
download | rtems-069ed6c5b49999866b5b30a732ba2e09301240c0.tar.bz2 |
2009-10-17 Chris Johns <chrisj@rtems.org>
* 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.
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/comm')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c index ff85206f00..2f52e379d2 100644 --- a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c +++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c @@ -20,6 +20,17 @@ int getDebugChar(void); /* read and return a single char */ /* assign an exception handler */ void exceptionHandler(int, void (*handler)(void)); +static void +nop(const rtems_raw_irq_connect_data* notused) +{ +} + +static int +isOn(const rtems_raw_irq_connect_data* notused) +{ + return 1; +} + void BSP_loop(int uart); /* Current uart used by gdb stub */ @@ -36,7 +47,8 @@ i386_stub_glue_init(int uart) uart_current = uart; - BSP_uart_init(uart, 38400, CHR_8_BITS, 0, 0, 0); + /* BSP_uart_init(uart, 38400, CHR_8_BITS, 0, 0, 0);*/ + BSP_uart_init(uart, 115200, CHR_8_BITS, 0, 0, 0); } void BSP_uart_on(const rtems_raw_irq_connect_data* used) @@ -152,9 +164,9 @@ void exceptionHandler(int vector, void (*handler)(void)) rtems_fatal_error_occurred(1); } - excep_raw_irq_data.on = NULL; - excep_raw_irq_data.off = NULL; - excep_raw_irq_data.isOn = NULL; + excep_raw_irq_data.on = nop; + excep_raw_irq_data.off = nop; + excep_raw_irq_data.isOn = isOn; excep_raw_irq_data.hdl = handler; if (!i386_set_idt_entry (&excep_raw_irq_data)) { |