summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/or1k/or1ksim/irq/irq.c
blob: c3c4d6d4a41521a70c0f435278cdec0dff069839 (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
36
37
38
39
40
41
42
/**
 * @file
 *
 * @ingroup or1k_interrupt
 *
 * @brief Interrupt support.
 */

/*
 * Copyright (c) 2014 Hesham ALMatary
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#include <bsp/irq.h>
#include <bsp/irq-generic.h>

/* Almost all of the jobs that the following functions should
 * do are implemented in cpukit
 */

void bsp_interrupt_handler_default(rtems_vector_number vector)
{
    printk("spurious interrupt: %u\n", vector);
}

rtems_status_code bsp_interrupt_facility_initialize()
{
  return 0;
}

rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
{
  return 0;
}

rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
{
  return 0;
}