source: rtems/c/src/lib/libbsp/arm/shared/irq/irq_init.c @ dd1ad07b

4.104.114.84.95
Last change on this file since dd1ad07b was dd1ad07b, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 13, 2002 at 3:48:20 PM

2002-11-13 Jay Monkman <jtm@…>

  • irq/irq_asm.S, irq/irq_init.c: Fixes a bug with handling the situation where we are processing an IRQ, and we receive an FIQ.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* irq_init.c
2 *
3 *  This file contains the implementation of rtems initialization
4 *  related to interrupt handling.
5 *
6 *  CopyRight (C) 2000 Canon Research Centre France SA.
7 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#include <irq.h>
17#include <bsp.h>
18#include <rtems/bspIo.h>
19
20/*
21 * default int vector
22 */
23extern void _ISR_Handler();
24
25void default_int_handler()
26{
27  printk("raw_idt_notify has been called \n");
28}
29
30void  rtems_irq_mngt_init()
31{
32    int                         i;
33    long                        *vectorTable;
34    rtems_interrupt_level       level;
35   
36    vectorTable = (long *) VECTOR_TABLE;
37   
38    _CPU_ISR_Disable(level);
39
40    /* First, connect the ISR_Handler for IRQ and FIQ interrupts */
41    _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ISR_Handler, NULL);     
42    _CPU_ISR_install_vector(ARM_EXCEPTION_FIQ, _ISR_Handler, NULL);       
43
44     /* Initialize the vector table contents with default handler */
45    for (i=0; i<BSP_MAX_INT; i++)
46      *(vectorTable + i) = (long)(default_int_handler);
47
48    /* Initialize the INT at the BSP level */
49    BSP_rtems_irq_mngt_init();
50}
51
Note: See TracBrowser for help on using the repository browser.