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/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 '')
-rw-r--r-- | c/src/lib/libbsp/arm/gba/irq/irq_init.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/c/src/lib/libbsp/arm/gba/irq/irq_init.c b/c/src/lib/libbsp/arm/gba/irq/irq_init.c deleted file mode 100644 index dfa6ec2744..0000000000 --- a/c/src/lib/libbsp/arm/gba/irq/irq_init.c +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @file irq_init.c - * - * This file contains the implementation of rtems initialization - * related to interrupt handling. - */ -/* - * RTEMS GBA BSP - * - * CopyRight (C) 2000 Canon Research Centre France SA. - * Emmanuel Raguet, mailto:raguet@crf.canon.fr - * - * 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 <stdint.h> -#include <bsp.h> -#include <irq.h> -#include <rtems/bspIo.h> - -/** default int vector */ -extern void _ISR_Handler(void); - -/** max number of vectors, defined in linkcmds */ -extern void _irq_max_vector; - -/** - * @brief default_int_handler BSP routine is default int_handler - * - * @param None - * @return None - */ -void default_int_handler(rtems_irq_hdl_param unused) -{ - printk("raw_idt_notify has been called \n"); -} - -/** - * @brief rtems_irq_mngt_init BSP routine initialize rtems_irq_mngt - * - * @param None - * @return None - */ -void rtems_irq_mngt_init(void) -{ - int i; - uint32_t *vectorTable; - rtems_interrupt_level level; - - vectorTable = (uint32_t *)VECTOR_TABLE; - - rtems_interrupt_disable(level); - - /* @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS */ - /* First, connect the ISR_Handler for IRQ and FIQ interrupts */ - /*_CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ISR_Handler, NULL);*/ - /*_CPU_ISR_install_vector(ARM_EXCEPTION_FIQ, _ISR_Handler, NULL);*/ - - /* Initialize the vector table contents with default handler */ - for (i=0 ; i < (uint32_t)&_irq_max_vector ; i++) { - *(vectorTable + i) = (uint32_t)(default_int_handler); - } - /* Initialize the INT at the BSP level */ - BSP_rtems_irq_mngt_init(); -} - |