bsps: Fix warnings

This commit is contained in:
Sebastian Huber
2013-04-08 16:11:02 +02:00
parent a53045fda5
commit 602d5ba27c
2 changed files with 22 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ SPR_RW(PPC405_TSR)
* However, the legacy mode works with less modifications
* of user code.
*/
int C_dispatch_dec_handler_bookE (BSP_Exception_frame *frame, unsigned int excNum)
static int C_dispatch_dec_handler_bookE (BSP_Exception_frame *frame, unsigned int excNum)
{
/* clear interrupt; we must do this
* before C_dispatch_irq_handler()

View File

@@ -177,6 +177,27 @@ int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data*);
int BSP_install_rtems_shared_irq_handler (const rtems_irq_connect_data*);
#endif
/*
* Less cumbersome, alternate entry points;
* RETURNS: more traditional, 0 on success, nonzero on error
*
* The BSP_rtems_int_connect() and BSP_rtems_int_disconnect() functions are
* only present on some PowerPC BSPs. Do not use them. Use
* rtems_interrupt_handler_install() instead.
*/
int BSP_rtems_int_connect(
rtems_irq_number n,
rtems_irq_hdl hdl,
rtems_irq_hdl_param p
);
int BSP_rtems_int_disconnect(
rtems_irq_number n,
rtems_irq_hdl hdl,
rtems_irq_hdl_param p
);
/*
* ----------------- RTEMS Global Irq Handler Mngt Routines ----------------
*/