source: rtems/c/src/lib/libcpu/arm/at91rm9200/irq/bsp_irq_init.c @ c193baad

4.104.11
Last change on this file since c193baad was c193baad, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Apr 9, 2010 at 8:24:57 PM

unify irq data types and code, merge s3c2400/s3c2410 support

  • Property mode set to 100644
File size: 797 bytes
Line 
1/*
2 * Atmel AT91RM9200 Interrupt handler
3 *
4 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *
12 *  $Id$
13 */
14#include <irq.h>
15#include <bsp.h>
16#include <at91rm9200.h>
17
18/*
19 * Interrupt system initialization. Disable interrupts, clear
20 * any that are pending.
21 */
22void BSP_rtems_irq_mngt_init(void)
23{
24    long *vectorTable;
25    int i;
26
27    vectorTable = (long *) VECTOR_TABLE;
28
29    /* Initialize the vector table contents with default handler */
30    for (i=0; i<BSP_MAX_INT; i++) {
31        *(vectorTable + i) = (long)(default_int_handler);
32    }
33
34    /* disable all interrupts */
35    AIC_CTL_REG(AIC_IDCR) = 0xffffffff;
36}
37
Note: See TracBrowser for help on using the repository browser.