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

4.104.114.84.95
Last change on this file since 08330bf was 08330bf, checked in by Joel Sherrill <joel.sherrill@…>, on 07/27/00 at 01:04:11

Port of RTEMS to the ARM processor family by Eric Valette
<valette@…> and Emmanuel Raguet <raguet@…>
of Canon CRF - Communication Dept. This port includes a
basic BSP that is sufficient to link hello world.

  • 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 <bspio.h>
19#include <registers.h>
20
21/*
22 * default int vector
23 */
24extern void _ISR_Handler();
25
26void default_int_handler()
27{
28  printk("raw_idt_notify has been called \n");
29}
30
31void  rtems_irq_mngt_init()
32{
33    int                         i;
34    long                        *vectorTable;
35   
36    vectorTable = 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.