[rtems commit] bsps: Add shared default IRQ handler

Sebastian Huber sebh at rtems.org
Sat Mar 24 21:50:51 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Mar 24 22:01:08 2012 +0100

bsps: Add shared default IRQ handler

---

 c/src/lib/libbsp/arm/csb336/Makefile.am           |   11 +++++----
 c/src/lib/libbsp/arm/csb337/Makefile.am           |   11 +++++----
 c/src/lib/libbsp/arm/edb7312/Makefile.am          |   15 +++++++------
 c/src/lib/libbsp/arm/edb7312/irq/irq.c            |    5 ----
 c/src/lib/libbsp/arm/gba/Makefile.am              |   13 ++++++-----
 c/src/lib/libbsp/arm/gba/irq/irq.c                |    5 ----
 c/src/lib/libbsp/arm/gp32/Makefile.am             |   11 +++++----
 c/src/lib/libbsp/arm/gumstix/Makefile.am          |   11 +++++----
 c/src/lib/libbsp/arm/lm3s69xx/Makefile.am         |    5 ++-
 c/src/lib/libbsp/arm/lm3s69xx/irq/irq.c           |    5 ----
 c/src/lib/libbsp/arm/lpc24xx/Makefile.am          |   15 +++++++------
 c/src/lib/libbsp/arm/lpc24xx/irq/irq.c            |    5 ----
 c/src/lib/libbsp/arm/lpc32xx/Makefile.am          |   13 ++++++-----
 c/src/lib/libbsp/arm/lpc32xx/irq/irq.c            |    5 ----
 c/src/lib/libbsp/arm/rtl22xx/Makefile.am          |   11 +++++----
 c/src/lib/libbsp/arm/smdk2410/Makefile.am         |   11 +++++----
 c/src/lib/libbsp/i386/pc386/Makefile.am           |    1 +
 c/src/lib/libbsp/i386/shared/irq/irq.c            |    5 ----
 c/src/lib/libbsp/lm32/shared/irq/irq.c            |    5 ----
 c/src/lib/libbsp/powerpc/gen83xx/Makefile.am      |   13 ++++++-----
 c/src/lib/libbsp/powerpc/gen83xx/irq/irq.c        |    5 ----
 c/src/lib/libbsp/powerpc/mbx8xx/Makefile.am       |   13 ++++++-----
 c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c         |    5 ----
 c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am   |   10 +++++---
 c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am   |   13 ++++++-----
 c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c     |    5 ----
 c/src/lib/libbsp/powerpc/qemuppc/Makefile.am      |   12 +++++++---
 c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c   |    5 ----
 c/src/lib/libbsp/powerpc/qoriq/Makefile.am        |   13 ++++++-----
 c/src/lib/libbsp/powerpc/qoriq/irq/irq.c          |    5 ----
 c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am       |   10 ++++++--
 c/src/lib/libbsp/powerpc/tqm8xx/irq/irq.c         |    5 ----
 c/src/lib/libbsp/shared/src/irq-default-handler.c |   22 +++++++++++++++++++++
 c/src/lib/libcpu/arm/at91rm9200/irq/irq.c         |    5 ----
 c/src/lib/libcpu/arm/lpc22xx/irq/irq.c            |    5 ----
 c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c          |    5 ----
 c/src/lib/libcpu/arm/pxa255/irq/irq.c             |    5 ----
 c/src/lib/libcpu/arm/s3c24xx/irq/irq.c            |    5 ----
 c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c        |    5 ----
 39 files changed, 141 insertions(+), 188 deletions(-)

diff --git a/c/src/lib/libbsp/arm/csb336/Makefile.am b/c/src/lib/libbsp/arm/csb336/Makefile.am
index 8a884c1..d00ea0b 100644
--- a/c/src/lib/libbsp/arm/csb336/Makefile.am
+++ b/c/src/lib/libbsp/arm/csb336/Makefile.am
@@ -44,11 +44,12 @@ libbsp_a_SOURCES += ../shared/abort/abort.c
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 
 if HAS_NETWORKING
 network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
diff --git a/c/src/lib/libbsp/arm/csb337/Makefile.am b/c/src/lib/libbsp/arm/csb337/Makefile.am
index 20c6e29..414a124 100644
--- a/c/src/lib/libbsp/arm/csb337/Makefile.am
+++ b/c/src/lib/libbsp/arm/csb337/Makefile.am
@@ -67,11 +67,12 @@ libbsp_a_SOURCES += ../../shared/console.c console/uarts.c \
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 if ENABLE_LCD
 libbsp_a_SOURCES += console/sed1356.c console/fbcons.c
 endif
diff --git a/c/src/lib/libbsp/arm/edb7312/Makefile.am b/c/src/lib/libbsp/arm/edb7312/Makefile.am
index bbe0002..c041bcb 100644
--- a/c/src/lib/libbsp/arm/edb7312/Makefile.am
+++ b/c/src/lib/libbsp/arm/edb7312/Makefile.am
@@ -56,13 +56,14 @@ libbsp_a_SOURCES += ../shared/abort/abort.c
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h \
 	irq/irq.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c \
-	irq/irq.c \
-	irq/bsp_irq_asm.S
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
+libbsp_a_SOURCES += irq/bsp_irq_asm.S
 
 if HAS_NETWORKING
 network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
diff --git a/c/src/lib/libbsp/arm/edb7312/irq/irq.c b/c/src/lib/libbsp/arm/edb7312/irq/irq.c
index 1f3d1f7..0c53fad 100644
--- a/c/src/lib/libbsp/arm/edb7312/irq/irq.c
+++ b/c/src/lib/libbsp/arm/edb7312/irq/irq.c
@@ -178,8 +178,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/arm/gba/Makefile.am b/c/src/lib/libbsp/arm/gba/Makefile.am
index 2ee9de5..9ecbada 100644
--- a/c/src/lib/libbsp/arm/gba/Makefile.am
+++ b/c/src/lib/libbsp/arm/gba/Makefile.am
@@ -55,12 +55,13 @@ libbsp_a_SOURCES += timer/timer.c
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h \
 	irq/irq.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c \
-	irq/irq.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 include $(srcdir)/preinstall.am
 include $(top_srcdir)/../../../../automake/local.am
diff --git a/c/src/lib/libbsp/arm/gba/irq/irq.c b/c/src/lib/libbsp/arm/gba/irq/irq.c
index d5d9b42..c5c5fd9 100644
--- a/c/src/lib/libbsp/arm/gba/irq/irq.c
+++ b/c/src/lib/libbsp/arm/gba/irq/irq.c
@@ -65,8 +65,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/arm/gp32/Makefile.am b/c/src/lib/libbsp/arm/gp32/Makefile.am
index 2086e44..50f7494 100644
--- a/c/src/lib/libbsp/arm/gp32/Makefile.am
+++ b/c/src/lib/libbsp/arm/gp32/Makefile.am
@@ -45,11 +45,12 @@ libbsp_a_SOURCES += console/uart.c ../../shared/console.c \
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 # abort
 libbsp_a_SOURCES += ../shared/abort/abort.c
 # smc
diff --git a/c/src/lib/libbsp/arm/gumstix/Makefile.am b/c/src/lib/libbsp/arm/gumstix/Makefile.am
index 8475686..5d2e1dd 100755
--- a/c/src/lib/libbsp/arm/gumstix/Makefile.am
+++ b/c/src/lib/libbsp/arm/gumstix/Makefile.am
@@ -45,11 +45,12 @@ libbsp_a_SOURCES += console/uarts.c ../../shared/console.c \
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 #abort
 libbsp_a_SOURCES += ../shared/abort/abort.c
 #framebuffer
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am b/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
index db833f1..669e303 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
@@ -76,11 +76,12 @@ libbsp_a_SOURCES += startup/bspstarthook.c
 libbsp_a_SOURCES += startup/bspreset.c
 
 # IRQ
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
 libbsp_a_SOURCES += ../../shared/src/irq-generic.c
-libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
 libbsp_a_SOURCES += ../../shared/src/irq-info.c
-libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
 libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 libbsp_a_SOURCES += irq/irq.c
 
 # Console
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/irq/irq.c b/c/src/lib/libbsp/arm/lm3s69xx/irq/irq.c
index 4305efa..bb0d05b 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/irq/irq.c
+++ b/c/src/lib/libbsp/arm/lm3s69xx/irq/irq.c
@@ -45,8 +45,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/arm/lpc24xx/Makefile.am b/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
index 1a69af0..da13c53 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
@@ -106,13 +106,14 @@ libbsp_a_SOURCES += startup/bspreset.c
 libbsp_a_SOURCES += startup/bspstart.c
 
 # IRQ
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c \
-	irq/irq.c \
-	irq/irq-dispatch.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
+libbsp_a_SOURCES += irq/irq-dispatch.c
 
 # Console
 libbsp_a_SOURCES += ../../shared/console.c \
diff --git a/c/src/lib/libbsp/arm/lpc24xx/irq/irq.c b/c/src/lib/libbsp/arm/lpc24xx/irq/irq.c
index db09899..3009e3f 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/irq/irq.c
+++ b/c/src/lib/libbsp/arm/lpc24xx/irq/irq.c
@@ -144,8 +144,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/arm/lpc32xx/Makefile.am b/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
index 0a14fa0..d9bad71 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
@@ -101,12 +101,13 @@ libbsp_a_SOURCES += startup/bspreset.c
 libbsp_a_SOURCES += startup/bspstart.c
 
 # IRQ
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c \
-	irq/irq.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 # Console
 libbsp_a_SOURCES += ../../shared/console.c \
diff --git a/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c b/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
index 5cc5ea3..b53b9f4 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
+++ b/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
@@ -345,8 +345,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/arm/rtl22xx/Makefile.am b/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
index bebdff5..0ee0dd1 100644
--- a/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
@@ -47,11 +47,12 @@ libbsp_a_SOURCES += ../../shared/console.c \
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 # simple_abort
 libbsp_a_SOURCES += ../shared/abort/simple_abort.c
 # debugio
diff --git a/c/src/lib/libbsp/arm/smdk2410/Makefile.am b/c/src/lib/libbsp/arm/smdk2410/Makefile.am
index 0cda716..20ad4ca 100644
--- a/c/src/lib/libbsp/arm/smdk2410/Makefile.am
+++ b/c/src/lib/libbsp/arm/smdk2410/Makefile.am
@@ -46,11 +46,12 @@ libbsp_a_SOURCES += ../gp32/console/uart.c ../../shared/console.c \
 # IRQ
 include_bsp_HEADERS += ../../shared/include/irq-generic.h \
 	../../shared/include/irq-info.h
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 # abort
 libbsp_a_SOURCES += ../shared/abort/abort.c
 # smc
diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am b/c/src/lib/libbsp/i386/pc386/Makefile.am
index 4441cd7..73bc199 100644
--- a/c/src/lib/libbsp/i386/pc386/Makefile.am
+++ b/c/src/lib/libbsp/i386/pc386/Makefile.am
@@ -105,6 +105,7 @@ libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
     ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
     ../../shared/bootcard.c ../../shared/bspinit.c ../../shared/sbrk.c \
     startup/ldsegs.S ../../i386/shared/irq/irq_asm.S \
+    ../../shared/src/irq-default-handler.c \
     ../../shared/src/irq-generic.c \
     ../../shared/src/irq-legacy.c \
     ../../shared/src/irq-info.c \
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq.c b/c/src/lib/libbsp/i386/shared/irq/irq.c
index 7d9d95f..36580cc 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq.c
@@ -239,11 +239,6 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
   return RTEMS_SUCCESSFUL;
 }
 
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
-
 void C_dispatch_isr(int vector)
 {
   irq_count[vector]++;
diff --git a/c/src/lib/libbsp/lm32/shared/irq/irq.c b/c/src/lib/libbsp/lm32/shared/irq/irq.c
index f5d9f82..20676b7 100644
--- a/c/src/lib/libbsp/lm32/shared/irq/irq.c
+++ b/c/src/lib/libbsp/lm32/shared/irq/irq.c
@@ -30,8 +30,3 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
   lm32_interrupt_mask(1 << vector);
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
index 3dec1c1..8971173 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
@@ -75,12 +75,13 @@ include_bsp_HEADERS = include/irq.h \
 	include/u-boot-config.h
 
 # irq
-libbsp_a_SOURCES += irq/irq.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 # console
 libbsp_a_SOURCES += ../../shared/console.c \
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/irq/irq.c b/c/src/lib/libbsp/powerpc/gen83xx/irq/irq.c
index fe4d2c8..2828e6c 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/irq/irq.c
@@ -584,8 +584,3 @@ rtems_status_code bsp_interrupt_facility_initialize()
 	/* Initialize the interrupt controller */
 	return mpc83xx_ipic_initialize();
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-	printk( "Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/Makefile.am b/c/src/lib/libbsp/powerpc/mbx8xx/Makefile.am
index 23d1c01..0134f33 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/Makefile.am
@@ -37,12 +37,13 @@ libbsp_a_SOURCES += clock/p_clock.c
 # console
 libbsp_a_SOURCES += console/console.c
 # irq
-libbsp_a_SOURCES += irq/irq.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 # ide
 libbsp_a_SOURCES += ide/idecfg.c ide/pcmcia_ide.c
 # startup
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
index f3a32ef..c5aad4d 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
@@ -347,8 +347,3 @@ rtems_status_code bsp_interrupt_facility_initialize()
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-  printk( "Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
index 933dfe9..6c751fa 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
@@ -94,10 +94,12 @@ libbsp_a_SOURCES += console/console-generic.c
 libbsp_a_SOURCES += console/console-linflex.c
 
 # irq_generic
-libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
-    ../../shared/src/irq-legacy.c \
-    ../../shared/src/irq-info.c \
-    ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
 
 # Misc
 libbsp_a_SOURCES += startup/sd-card-init.c
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
index 647cf00..aa1ead9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
@@ -41,12 +41,13 @@ include_bsp_HEADERS = irq/irq.h \
 	../../shared/include/irq-info.h
 
 # irq
-libbsp_a_SOURCES += irq/irq.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 # startup
 libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
index 9ba682f..f626d77 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
@@ -372,8 +372,3 @@ rtems_status_code bsp_interrupt_facility_initialize()
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-  printk( "Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am b/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
index b2bbd4b..e5424b1 100644
--- a/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
@@ -46,10 +46,14 @@ console_SOURCES = ../../shared/console-polled.c console/console-io.c
 # irq
 include_bsp_HEADERS = irq/irq.h \
     ../../shared/include/irq-generic.h
-
-irq_SOURCES = irq/irq_init.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c
+irq_SOURCES =
+irq_SOURCES += ../../shared/src/irq-default-handler.c
+irq_SOURCES += ../../shared/src/irq-generic.c
+irq_SOURCES += ../../shared/src/irq-info.c
+irq_SOURCES += ../../shared/src/irq-legacy.c
+irq_SOURCES += ../../shared/src/irq-server.c
+irq_SOURCES += ../../shared/src/irq-shell.c
+irq_SOURCES += irq/irq_init.c
 
 noinst_LIBRARIES += libbsp.a
 libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(console_SOURCES) \
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c b/c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c
index f2787b0..faedff8 100644
--- a/c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c
@@ -55,8 +55,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
 	return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-	printk( "Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/qoriq/Makefile.am b/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
index 78ff0ec..d89e821 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
@@ -88,12 +88,13 @@ libbsp_a_SOURCES += clock/clock-config.c \
 libbsp_a_SOURCES += timer/timer.c
 
 # IRQ
-libbsp_a_SOURCES += irq/irq.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c \
-	../../shared/src/irq-info.c \
-	../../shared/src/irq-shell.c \
-	../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 # Console
 libbsp_a_SOURCES += ../../shared/console.c \
diff --git a/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c b/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
index fb1d52b..da5ecc9 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
@@ -334,8 +334,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
 	return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-	printk("Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
index 3586687..141a80d 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
@@ -42,9 +42,13 @@ noinst_LIBRARIES += libbsp.a
 libbsp_a_SOURCES =
 
 # irq
-libbsp_a_SOURCES += irq/irq.c \
-	../../shared/src/irq-generic.c \
-	../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
+libbsp_a_SOURCES += ../../shared/src/irq-generic.c
+libbsp_a_SOURCES += ../../shared/src/irq-info.c
+libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
+libbsp_a_SOURCES += ../../shared/src/irq-server.c
+libbsp_a_SOURCES += ../../shared/src/irq-shell.c
+libbsp_a_SOURCES += irq/irq.c
 
 # clock
 libbsp_a_SOURCES += ../shared/clock/clock.c
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/irq/irq.c b/c/src/lib/libbsp/powerpc/tqm8xx/irq/irq.c
index 2991636..b3f7160 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/irq/irq.c
@@ -233,8 +233,3 @@ rtems_status_code bsp_interrupt_facility_initialize()
   /* Initialize the CPIC interrupt controller */
   return mpc8xx_cpic_initialize();
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-	printk( "Spurious interrupt: 0x%08x\n", vector);
-}
diff --git a/c/src/lib/libbsp/shared/src/irq-default-handler.c b/c/src/lib/libbsp/shared/src/irq-default-handler.c
new file mode 100644
index 0000000..0886826
--- /dev/null
+++ b/c/src/lib/libbsp/shared/src/irq-default-handler.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
+ *
+ *  embedded brains GmbH
+ *  Obere Lagerstr. 30
+ *  82178 Puchheim
+ *  Germany
+ *  <rtems at embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#include <rtems/bspIo.h>
+
+#include <bsp/irq-generic.h>
+
+void bsp_interrupt_handler_default(rtems_vector_number vector)
+{
+  printk("spurious interrupt: %u\n", vector);
+}
diff --git a/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c b/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c
index 12a0df6..a9ab3db 100644
--- a/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c
+++ b/c/src/lib/libcpu/arm/at91rm9200/irq/irq.c
@@ -57,8 +57,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libcpu/arm/lpc22xx/irq/irq.c b/c/src/lib/libcpu/arm/lpc22xx/irq/irq.c
index 2c5f392..58ee909 100644
--- a/c/src/lib/libcpu/arm/lpc22xx/irq/irq.c
+++ b/c/src/lib/libcpu/arm/lpc22xx/irq/irq.c
@@ -71,8 +71,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c b/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
index d0d4927..18e2e41 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
+++ b/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
@@ -43,8 +43,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libcpu/arm/pxa255/irq/irq.c b/c/src/lib/libcpu/arm/pxa255/irq/irq.c
index 61df3f3..8a6d074 100755
--- a/c/src/lib/libcpu/arm/pxa255/irq/irq.c
+++ b/c/src/lib/libcpu/arm/pxa255/irq/irq.c
@@ -51,8 +51,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libcpu/arm/s3c24xx/irq/irq.c b/c/src/lib/libcpu/arm/s3c24xx/irq/irq.c
index 39cb67b..58ab6c9 100644
--- a/c/src/lib/libcpu/arm/s3c24xx/irq/irq.c
+++ b/c/src/lib/libcpu/arm/s3c24xx/irq/irq.c
@@ -43,8 +43,3 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
 
   return RTEMS_SUCCESSFUL;
 }
-
-void bsp_interrupt_handler_default(rtems_vector_number vector)
-{
-  printk("spurious interrupt: %u\n", vector);
-}
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c b/c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c
index be766ef..6b4aaca 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c
@@ -170,8 +170,3 @@ rtems_status_code bsp_interrupt_vector_disable( rtems_vector_number vector)
 		return RTEMS_SUCCESSFUL;
 	}
 }
-
-void bsp_interrupt_handler_default( rtems_vector_number vector)
-{
-	/* Do nothing */
-}




More information about the vc mailing list