summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c
diff options
context:
space:
mode:
authorJay Monkman <jtm@smoothsmoothie.com>2006-06-03 03:08:01 +0000
committerJay Monkman <jtm@smoothsmoothie.com>2006-06-03 03:08:01 +0000
commit128bbf97d965a6fb16afbfc4e8b376fad4899ac1 (patch)
tree27bb53cc9d638c8a739ba97a586ae6f7095d0f35 /c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c
parent1ca844f9064e7aa3e71714b50c9936cba9d18079 (diff)
downloadrtems-128bbf97d965a6fb16afbfc4e8b376fad4899ac1.tar.bz2
2006-06-02 Jay Monkman <jtm@lopingdog.com>
* irq/bsp_irq_init.c: Changed interrupt handling to use shared rtems_irq_connect_data struct.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c b/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c
index 5825e6d651..b47fbbbdd4 100644
--- a/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c
+++ b/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c
@@ -29,6 +29,16 @@
*/
void BSP_rtems_irq_mngt_init(void)
{
+ long *vectorTable;
+ int i;
+
+ vectorTable = (long *) VECTOR_TABLE;
+
+ /* Initialize the vector table contents with default handler */
+ for (i=0; i<BSP_MAX_INT; i++) {
+ *(vectorTable + i) = (long)(default_int_handler);
+ }
+
/* clear all interrupt status flags */
GBA_REG_IF = 0xffff;
/* disable all interrupts */