[PATCH 2/4] bsp/leon3: Declare leon3_ext_irq_init() in header
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Feb 18 11:53:10 UTC 2014
---
c/src/lib/libbsp/sparc/leon3/amba/amba.c | 4 +---
c/src/lib/libbsp/sparc/leon3/include/leon.h | 3 +++
c/src/lib/libbsp/sparc/leon3/startup/eirq.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
index a4745d4..8873ae9 100644
--- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c
+++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
@@ -13,6 +13,7 @@
#include <bsp.h>
#include <bsp/fatal.h>
+#include <leon.h>
#include <ambapp.h>
/* AMBA Plug&Play information description.
@@ -22,9 +23,6 @@
*/
struct ambapp_bus ambapp_plb;
-/* GRLIB extended IRQ controller register */
-extern void leon3_ext_irq_init(void);
-
/* Pointers to Interrupt Controller configuration registers */
volatile struct irqmp_regs *LEON3_IrqCtrl_Regs;
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h
index ade04ab..4ebb043 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h
@@ -319,6 +319,9 @@ void leon3_secondary_cpu_initialize(uint32_t cpu);
void leon3_cpu_counter_initialize(void);
+/* GRLIB extended IRQ controller register */
+void leon3_ext_irq_init(void);
+
void bsp_debug_uart_init(void);
#endif /* !ASM */
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/eirq.c b/c/src/lib/libbsp/sparc/leon3/startup/eirq.c
index d62035e..3650dff 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/eirq.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/eirq.c
@@ -10,7 +10,7 @@
*
*/
-#include <bsp.h>
+#include <leon.h>
/* GRLIB extended IRQ controller IRQ number */
int LEON3_IrqCtrl_EIrq = -1;
--
1.7.7
More information about the devel
mailing list