4.104.114.84.95
Last change
on this file since aae96a2 was
176e6d40,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/04/02 at 17:40:41
|
2002-01-03 Ralf Corsepius <corsepiu@…>
- comm/console.c: Include rtems/bspIo.h instead of bspIo.h.
- irq/irq_init.c: Include rtems/bspIo.h instead of bspIo.h.
|
-
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 | #include <registers.h> |
---|
20 | |
---|
21 | /* |
---|
22 | * default int vector |
---|
23 | */ |
---|
24 | extern void _ISR_Handler(); |
---|
25 | |
---|
26 | void default_int_handler() |
---|
27 | { |
---|
28 | printk("raw_idt_notify has been called \n"); |
---|
29 | } |
---|
30 | |
---|
31 | void rtems_irq_mngt_init() |
---|
32 | { |
---|
33 | int i; |
---|
34 | long *vectorTable; |
---|
35 | rtems_interrupt_level level; |
---|
36 | |
---|
37 | vectorTable = (long *) 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.