[rtems commit] bsps: Fix warnings
Sebastian Huber
sebh at rtems.org
Mon Apr 8 14:37:38 UTC 2013
Module: rtems
Branch: master
Commit: 602d5ba27c774ba7da6edef086ef0ef9fd8a9a08
Changeset: http://git.rtems.org/rtems/commit/?id=602d5ba27c774ba7da6edef086ef0ef9fd8a9a08
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 8 16:11:02 2013 +0200
bsps: Fix warnings
---
.../libcpu/powerpc/new-exceptions/bspsupport/irq.c | 2 +-
cpukit/include/rtems/irq.h | 21 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
index 39c3048..3bc61db 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c
@@ -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()
diff --git a/cpukit/include/rtems/irq.h b/cpukit/include/rtems/irq.h
index ecebe9e..e0e5713 100644
--- a/cpukit/include/rtems/irq.h
+++ b/cpukit/include/rtems/irq.h
@@ -178,6 +178,27 @@ 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 ----------------
*/
/*
More information about the vc
mailing list