source: rtems/c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c @ 6128a4a

4.104.114.84.95
Last change on this file since 6128a4a was 6128a4a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 10:43:04

Remove stray white spaces.

  • Property mode set to 100644
File size: 954 bytes
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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15#include <irq.h>
16#include <bsp.h>
17#include <registers.h>
18
19
20void BSP_rtems_irq_mngt_init() {
21
22  /* Initialize the vector table address in internal RAM */
23  Regs[INTTAB] = VECTOR_TABLE;
24
25  /* Initialize the GLOBAL INT CONTROL register */
26  Regs[INTGCNTL] = 0x00;
27
28  /* Mask all the interrupts */
29  Regs[INTMASK] = 0xFFFF;
30
31  /* Unmask the 2 arm interrupts IRQ and FIQ on the INT controller */
32  Regs[INTMASKALL] = 0x0;
33
34  /* Ack pending interrupt */
35  while ( ( Regs[INTSTAT] & 0xF433 ) != 0 ) {
36    Regs[INTACK] = 0xFFFF;
37    Regs[INTEOI] = EOI;
38  }
39}
Note: See TracBrowser for help on using the repository browser.