diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-15 17:31:04 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-19 17:00:55 -0500 |
commit | 6e14a99b5819ef278beb19e53aec5518e5d16007 (patch) | |
tree | 7130aa92d92534767e0176392524e0a90b345c3a /c/src/lib/libbsp/m68k/sim68000 | |
parent | m68k/mvme162: Fix warnings (diff) | |
download | rtems-6e14a99b5819ef278beb19e53aec5518e5d16007.tar.bz2 |
m68k/shared and sim68000: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/m68k/sim68000')
-rw-r--r-- | c/src/lib/libbsp/m68k/sim68000/console/debugio.c | 13 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/sim68000/include/bsp.h | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/sim68000/startup/spurious_assistant.c | 10 |
3 files changed, 18 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/m68k/sim68000/console/debugio.c b/c/src/lib/libbsp/m68k/sim68000/console/debugio.c index 5f0f493f3d..c9993ceaaf 100644 --- a/c/src/lib/libbsp/m68k/sim68000/console/debugio.c +++ b/c/src/lib/libbsp/m68k/sim68000/console/debugio.c @@ -1,10 +1,5 @@ /* - * This routine starts the application. It includes application, - * board, and monitor specific initialization and configuration. - * The generic CPU dependent initialization has been performed - * before this routine is invoked. - * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -17,6 +12,10 @@ #include <bsp.h> #include <rtems/bspIo.h> -void debug_putc( char c ) { write( 2, &c, 1 ); } +static void debug_putc( char c ) +{ + write( 2, &c, 1 ); +} + BSP_output_char_function_type BSP_output_char = debug_putc; BSP_polling_getchar_function_type BSP_poll_char = NULL; diff --git a/c/src/lib/libbsp/m68k/sim68000/include/bsp.h b/c/src/lib/libbsp/m68k/sim68000/include/bsp.h index ba1254d077..aeb8ded548 100644 --- a/c/src/lib/libbsp/m68k/sim68000/include/bsp.h +++ b/c/src/lib/libbsp/m68k/sim68000/include/bsp.h @@ -34,6 +34,13 @@ extern "C" { rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int ); +/* + * Prototype for methods in the BSP that cross file boundaries. + */ +void bsp_spurious_initialize(void); +void bsp_spurious_handler_assistant(rtems_vector_number vector); +rtems_isr bsp_spurious_handler(rtems_vector_number vector); + #ifdef __cplusplus } #endif diff --git a/c/src/lib/libbsp/m68k/sim68000/startup/spurious_assistant.c b/c/src/lib/libbsp/m68k/sim68000/startup/spurious_assistant.c index 8202d1f400..032763e703 100644 --- a/c/src/lib/libbsp/m68k/sim68000/startup/spurious_assistant.c +++ b/c/src/lib/libbsp/m68k/sim68000/startup/spurious_assistant.c @@ -1,7 +1,9 @@ /* * Spurious Trap Handler Assistant - * - * COPYRIGHT (c) 1989-2000. + */ + +/* + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -17,10 +19,8 @@ * * We can't recover so just return to gdb. */ - void bsp_spurious_handler_assistant( - rtems_vector_number vector/* , - CPU_Interrupt_frame *isf */ + rtems_vector_number vector ) { /* XXX do something here */ |