summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ep1a/irq
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-12-08 17:26:19 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-12-08 17:26:19 +0000
commita9e62c242f60eb462af461ff1b930f51a8f03961 (patch)
tree56759ea2b1e11d6d1b4483cdc7a6345b46857f26 /c/src/lib/libbsp/powerpc/ep1a/irq
parent2007-12-08 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-a9e62c242f60eb462af461ff1b930f51a8f03961.tar.bz2
2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* ep1a/irq/irq.c, gen5200/irq/irq.c, gen83xx/irq/irq_init.c, mbx8xx/irq/irq.c, mpc8260ads/irq/irq.c, mvme5500/irq/irq.c, psim/irq/no_pic.c, score603e/irq/irq.c, shared/irq/irq_supp.h, shared/irq/openpic_i8259_irq.c, virtex/irq/irq_init.c: let C_dispatch_irq_handler() return zero to indicate to low-level exception handling code that the exception was handled (not used yet).
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ep1a/irq')
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/irq/irq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/irq/irq.c b/c/src/lib/libbsp/powerpc/ep1a/irq/irq.c
index ae5c519059..91ce967bb4 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/irq/irq.c
@@ -452,7 +452,7 @@ unsigned BSP_spuriousIntr = 0;
/*
* High level IRQ handler called from shared_raw_irq_code_entry
*/
-void C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int excNum)
+int C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int excNum)
{
register unsigned int irq;
register unsigned isaIntr; /* boolean */
@@ -469,7 +469,7 @@ void C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int ex
rtems_hdl_tbl[BSP_DECREMENTER].hdl( rtems_hdl_tbl[BSP_DECREMENTER].handle );
_CPU_MSR_SET(msr);
- return;
+ return 0;
}
@@ -477,7 +477,7 @@ void C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int ex
if (irq == OPENPIC_VEC_SPURIOUS) {
++BSP_spuriousIntr;
- return;
+ return 0;
}
isaIntr = (irq == BSP_PCI_ISA_BRIDGE_IRQ);
@@ -529,6 +529,7 @@ void C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int ex
#endif
openpic_eoi(0);
}
+ return 0;
}