summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/shared/irq/irq_init.c
blob: 77f120edabc31ba0d788dbc23ce9e85321ef2979 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* irq_init.c
 *
 *  This file contains the implementation of rtems initialization
 *  related to interrupt handling.
 *
 *  CopyRight (C) 2000 Canon Research Centre France SA.
 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */

#include <irq.h>
#include <bsp.h>
#include <rtems/bspIo.h>

void default_int_handler(void)
{
  printk("raw_idt_notify has been called \n");
}

void  rtems_irq_mngt_init(void)
{
    rtems_interrupt_level       level;

    rtems_interrupt_disable(level);

    /* First, connect the ISR_Handler for IRQ interrupts */
    _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, arm_exc_interrupt, NULL);

    /* Initialize the INT at the BSP level */
    BSP_rtems_irq_mngt_init();
}