[rtems commit] powerpc/psim: Fix warnings

Joel Sherrill joel at rtems.org
Sun Oct 19 21:51:57 UTC 2014


Module:    rtems
Branch:    master
Commit:    ba9c4a7e3bb69956681d4971569a865731aa1205
Changeset: http://git.rtems.org/rtems/commit/?id=ba9c4a7e3bb69956681d4971569a865731aa1205

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Oct 17 10:09:55 2014 -0500

powerpc/psim: Fix warnings

---

 c/src/lib/libbsp/powerpc/psim/irq/irq_init.c |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c
index a6377f7..59f0e1d 100644
--- a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c
@@ -1,12 +1,13 @@
-/* irq_init.c
- *
+/*
  *  This file contains the implementation of rtems initialization
- *  related to interrupt handling.
- *
- *  CopyRight (C) 1999 valette at crf.canon.fr
+ *  related to interrupt handling
+ */
+
+/*
+ *  Copyright (C) 1999 valette at crf.canon.fr
  *
- * Enhanced by Jay Kulpinski <jskulpin at eng01.gdds.com>
- * to make it valid for MVME2300 Motorola boards.
+ *  Enhanced by Jay Kulpinski <jskulpin at eng01.gdds.com>
+ *  to make it valid for MVME2300 Motorola boards.
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
@@ -21,6 +22,7 @@
 #include <bsp/vectors.h>
 #include <rtems/bspIo.h>
 #include <bsp/openpic.h>
+#include <bsp/irq-generic.h>
 
 static rtems_irq_connect_data      rtemsIrq[BSP_IRQ_NUMBER];
 static rtems_irq_global_settings   initial_config;
@@ -88,7 +90,10 @@ void BSP_rtems_irq_mng_init(unsigned cpuId)
   #endif
 }
 
-int psim_exception_handler( BSP_Exception_frame *frame, unsigned exception_number)
+static int psim_exception_handler(
+  BSP_Exception_frame *frame,
+  unsigned exception_number
+)
 {
   BSP_panic("Unexpected interrupt occured");
   return 0;



More information about the vc mailing list