summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-17 10:09:55 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-19 17:00:58 -0500
commitba9c4a7e3bb69956681d4971569a865731aa1205 (patch)
treed6d82e1062c20b5cd1a7dfc4f48ecb5649f00b1e
parentpowerpc/qemuppc: Fix warnings (diff)
downloadrtems-ba9c4a7e3bb69956681d4971569a865731aa1205.tar.bz2
powerpc/psim: Fix warnings
-rw-r--r--c/src/lib/libbsp/powerpc/psim/irq/irq_init.c21
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 a6377f7e61..59f0e1dcea 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@crf.canon.fr
+ * related to interrupt handling
+ */
+
+/*
+ * Copyright (C) 1999 valette@crf.canon.fr
*
- * Enhanced by Jay Kulpinski <jskulpin@eng01.gdds.com>
- * to make it valid for MVME2300 Motorola boards.
+ * Enhanced by Jay Kulpinski <jskulpin@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;