diff options
author | Hesham ALMatary <heshamelmatary@gmail.com> | 2014-08-20 12:23:20 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-08-20 14:46:15 -0500 |
commit | fd5701587f7961259253e66e4dd8fa8c44e8ee91 (patch) | |
tree | fe7996f2f6321ce1c0515b2b82cf34aa63470117 /c/src/lib/libbsp/or1k/or1ksim/irq/irq.c | |
parent | BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137) (diff) | |
download | rtems-fd5701587f7961259253e66e4dd8fa8c44e8ee91.tar.bz2 |
Add new (first) OpenRISC BSP called or1ksim.
This BSP is intended to run on or1ksim (the main OpenRISC emulator).
Fixed version according to Joel comments from the mailing list.
Diffstat (limited to 'c/src/lib/libbsp/or1k/or1ksim/irq/irq.c')
-rw-r--r-- | c/src/lib/libbsp/or1k/or1ksim/irq/irq.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/or1k/or1ksim/irq/irq.c b/c/src/lib/libbsp/or1k/or1ksim/irq/irq.c new file mode 100644 index 0000000000..c3c4d6d4a4 --- /dev/null +++ b/c/src/lib/libbsp/or1k/or1ksim/irq/irq.c @@ -0,0 +1,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; +} |