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

4.104.114.84.95
Last change on this file since 2d354ea6 was 2d354ea6, checked in by Joel Sherrill <joel.sherrill@…>, on 07/27/00 at 06:17:44

Minor problems addressed with the merger and with the arm_bare_bsp.
That BSP now has a stub clock driver so the tests can link even
if they won't execute. A handful of Makefiles had to be updated
and we had to account for printk.c being a shared file now.

  • 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    rtems_interrupt_level       level;
36   
37    vectorTable = VECTOR_TABLE;
38   
39    _CPU_ISR_Disable(level);
40
41    /* First, connect the ISR_Handler for IRQ and FIQ interrupts */
42    _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ISR_Handler, NULL);     
43    _CPU_ISR_install_vector(ARM_EXCEPTION_FIQ, _ISR_Handler, NULL);       
44
45     /* Initialize the vector table contents with default handler */
46    for (i=0; i<BSP_MAX_INT; i++)
47      *(vectorTable + i) = (long)(default_int_handler);
48
49    /* Initialize the INT at the BSP level */
50    BSP_rtems_irq_mngt_init();
51}
52
Note: See TracBrowser for help on using the repository browser.