summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm/s3c24xx/irq/bsp_irq_init.c
blob: 97c24c4fb4a7669ad9c32581f232aa70d59d5934 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* irq_init.c
 *
 *  This file contains the implementation of rtems initialization
 *  related to interrupt handling.
 *
 *  CopyRight (C) 2000 Canon Research Centre France SA.
 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */
#include <irq.h>
#include <bsp.h>
#include <s3c24xx.h>

void BSP_rtems_irq_mngt_init(void)
{
    long *vectorTable;
    int i;

    vectorTable = (long *) VECTOR_TABLE;

    /* Initialize the vector table contents with default handler */
    for (i=0; i<BSP_MAX_INT; i++) {
        *(vectorTable + i) = (long)(default_int_handler);
    }

    /*
     * Here is the code to initialize the INT for
     * the specified BSP
     */
}