m68k/shared and sim68000: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-19 17:00:55 -05:00
parent c186f2ed9e
commit 6e14a99b58
5 changed files with 29 additions and 32 deletions
@@ -1,10 +1,12 @@
/*
* CXX Spurious Trap Handler Install Routine
* M68000 Spurious Trap Handler Install Routine
*
* This is just enough of a trap handler to let us know what
* the likely source of the trap was.
*
* COPYRIGHT (c) 1989-1999.
*/
/*
* COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -20,12 +22,6 @@
*
* Install the spurious handler for most vectors.
*/
rtems_isr bsp_spurious_handler(
rtems_vector_number vector/*,
CPU_Interrupt_frame *isf */
);
void bsp_spurious_initialize(void)
{
uint32_t vector;
+6 -11
View File
@@ -1,10 +1,12 @@
/*
* C3X Spurious Trap Handler
* M68000 Spurious Trap Handler
*
* This is just enough of a trap handler to let us know what
* the likely source of the trap was.
*
* COPYRIGHT (c) 1989-1999.
*/
/*
* COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -20,15 +22,8 @@
*
* Print a message on the debug console and then die
*/
void bsp_spurious_handler_assistant(
rtems_vector_number /*,
CPU_Interrupt_frame * */
);
rtems_isr bsp_spurious_handler(
rtems_vector_number vector /*,
CPU_Interrupt_frame *isf */
rtems_vector_number vector
)
{
#if 0
@@ -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;
@@ -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
@@ -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 */