diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-28 18:59:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-28 18:59:33 +0000 |
commit | 7657a000d2e40cb28fcf0d7b18d13b3b1b88b062 (patch) | |
tree | 44ff2482a3e12d7fdfa836ca344421a2a551cf23 /c/src/lib/libcpu/mips | |
parent | 2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-7657a000d2e40cb28fcf0d7b18d13b3b1b88b062.tar.bz2 |
2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com>
* mongoosev/duart/mg5uart.c: Remove warnings.
Diffstat (limited to 'c/src/lib/libcpu/mips')
-rw-r--r-- | c/src/lib/libcpu/mips/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/c/src/lib/libcpu/mips/ChangeLog b/c/src/lib/libcpu/mips/ChangeLog index f23fa67e07..108179d5ac 100644 --- a/c/src/lib/libcpu/mips/ChangeLog +++ b/c/src/lib/libcpu/mips/ChangeLog @@ -1,3 +1,7 @@ +2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com> + + * mongoosev/duart/mg5uart.c: Remove warnings. + 2009-11-16 Ralf Corsépius <ralf.corsepius@rtems.org> * Makefile.am: Add shared/interrupts/isr_entries.h. diff --git a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c index af832cfdbd..4073f0ce5d 100644 --- a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c +++ b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c @@ -440,6 +440,8 @@ MG5UART_STATIC void mg5uart_write_polled( */ +extern void mips_default_isr(int vector); + #define __ISR(_TYPE, _OFFSET) \ MG5UART_STATIC void mg5uart_process_isr_ ## _TYPE ( \ int minor \ @@ -450,8 +452,7 @@ MG5UART_STATIC void mg5uart_write_polled( ) \ { \ int minor; \ - extern void mips_default_isr(int vector); \ - \ + \ for(minor=0 ; minor<Console_Port_Count ; minor++) { \ if( Console_Port_Tbl[minor].deviceType == SERIAL_MG5UART && \ vector == Console_Port_Tbl[minor].ulIntVector + _OFFSET ) { \ @@ -469,9 +470,6 @@ __ISR(tx_ready, MG5UART_IRQ_TX_READY) __ISR(rx_ready, MG5UART_IRQ_RX_READY) - - - MG5UART_STATIC void mg5uart_process_isr_rx_error( int minor, uint32_t mask @@ -679,10 +677,10 @@ MG5UART_STATIC int mg5uart_write_support_int( * */ -MG5UART_STATIC int mg5uart_write_support_polled( +MG5UART_STATIC ssize_t mg5uart_write_support_polled( int minor, const char *buf, - int len + size_t len ) { int nwrite = 0; |