diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 14:55:55 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 14:55:55 +0000 |
commit | 536f2d2b6a7b2854fff08ae62d10728a83fb17d6 (patch) | |
tree | bfb11e753120b82b2add03caefaa6e665469f01a /c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c | |
parent | 2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-536f2d2b6a7b2854fff08ae62d10728a83fb17d6.tar.bz2 |
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* irq/irq_asm.S, irq/irq_init.c, irq/bsp_irq_asm.S,
irq/bsp_irq_init.c: Removed files.
* Makefile.am, preinstall.am: Reflect changes above. Added generic
interrupt support modules.
* irq/irq.h, irq/irq.c: The previous interrupt warning fix changed the
interrupt handler API. To fix this problem the generic interrupt
support framework will be used now. This eliminates a lot of copy and
paste code. The interrupt header file is now <bsp/irq.h>.
* include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
* start/start.S, startup/bspstart.c, clock/clockdrv.c,
console/console.c, timer/timer.c: Interrupt support changes.
Diffstat (limited to 'c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c')
-rw-r--r-- | c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c | 48 |
1 files changed, 0 insertions, 48 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 deleted file mode 100644 index 73841bdca1..0000000000 --- a/c/src/lib/libbsp/arm/gba/irq/bsp_irq_init.c +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file bsp_irq_init.c - * - * This file contains the implementation of rtems initialization - * related to interrupt handling. - */ -/* - * RTEMS GBA BSP - * - * Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net> - * - * The license and distribution terms for this file may be - * found in found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <irq.h> -#include <bsp.h> -#include <gba_registers.h> - - -/** - * @brief BSP_rtems_irq_mngt_init BSP routine initialize irq registers - * - * @param None - * @return None - */ -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 */ - GBA_REG_IE = 0; - /* set master interrupt enable */ - GBA_REG_IME = 1; -} |