diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-11 14:57:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-16 07:29:24 +0200 |
commit | 45d06591f12c108ab27207c464ce46f0d0f26980 (patch) | |
tree | 333642464a46e4b4f5bc92af59cee98b80df47a8 /bsps | |
parent | score: Fix per-CPU job done handling (diff) | |
download | rtems-45d06591f12c108ab27207c464ce46f0d0f26980.tar.bz2 |
bsps: Always build generic interrupt support
This makes it possible to write tests for the generic interrupt
controller support.
Update #3269.
Diffstat (limited to 'bsps')
41 files changed, 164 insertions, 0 deletions
diff --git a/bsps/bfin/TLL6527M/include/bsp/irq.h b/bsps/bfin/TLL6527M/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/bfin/TLL6527M/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/bfin/bf537Stamp/include/bsp/irq.h b/bsps/bfin/bf537Stamp/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/bfin/bf537Stamp/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/bfin/eZKit533/include/bsp/irq.h b/bsps/bfin/eZKit533/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/bfin/eZKit533/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/include/bsp/irq-default.h b/bsps/include/bsp/irq-default.h new file mode 100644 index 0000000000..a94e045e0d --- /dev/null +++ b/bsps/include/bsp/irq-default.h @@ -0,0 +1,63 @@ +/** + * @file + * + * @ingroup RTEMSBSPsShared + */ + +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (C) 2019 embedded brains GmbH + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef LIBBSP_SHARED_IRQ_DEFAULT_H +#define LIBBSP_SHARED_IRQ_DEFAULT_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @addtogroup RTEMSBSPsShared + * + * @{ + */ + +/** + * @brief Default minimum interrupt vector. + */ +#define BSP_INTERRUPT_VECTOR_MIN 0 + +/** + * @brief Default maximum interrupt vector. + */ +#define BSP_INTERRUPT_VECTOR_MAX 0 + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_SHARED_IRQ_DEFAULT_H */ diff --git a/bsps/lm32/lm32_evr/include/bsp/irq.h b/bsps/lm32/lm32_evr/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/lm32/lm32_evr/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/lm32/milkymist/include/bsp/irq.h b/bsps/lm32/milkymist/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/lm32/milkymist/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/av5282/include/bsp/irq.h b/bsps/m68k/av5282/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/av5282/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/csb360/include/bsp/irq.h b/bsps/m68k/csb360/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/csb360/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/gen68340/include/bsp/irq.h b/bsps/m68k/gen68340/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/gen68340/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/gen68360/include/bsp/irq.h b/bsps/m68k/gen68360/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/gen68360/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mcf5206elite/include/bsp/irq.h b/bsps/m68k/mcf5206elite/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mcf5206elite/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mcf52235/include/bsp/irq.h b/bsps/m68k/mcf52235/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mcf52235/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mcf5225x/include/bsp/irq.h b/bsps/m68k/mcf5225x/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mcf5225x/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mcf5235/include/bsp/irq.h b/bsps/m68k/mcf5235/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mcf5235/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mcf5329/include/bsp/irq.h b/bsps/m68k/mcf5329/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mcf5329/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mrm332/include/bsp/irq.h b/bsps/m68k/mrm332/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mrm332/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mvme147/include/bsp/irq.h b/bsps/m68k/mvme147/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mvme147/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mvme147s/include/bsp/irq.h b/bsps/m68k/mvme147s/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mvme147s/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mvme162/include/bsp/irq.h b/bsps/m68k/mvme162/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mvme162/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/mvme167/include/bsp/irq.h b/bsps/m68k/mvme167/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/mvme167/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/m68k/uC5282/include/bsp/irq.h b/bsps/m68k/uC5282/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/m68k/uC5282/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/moxie/moxiesim/include/bsp/irq.h b/bsps/moxie/moxiesim/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/moxie/moxiesim/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/nios2/nios2_iss/include/bsp/irq.h b/bsps/nios2/nios2_iss/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/nios2/nios2_iss/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/no_cpu/no_bsp/include/bsp/irq.h b/bsps/no_cpu/no_bsp/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/no_cpu/no_bsp/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/powerpc/beatnik/include/bsp/irq.h b/bsps/powerpc/beatnik/include/bsp/irq.h index e5f9558ecf..bd8d9d49a2 100644 --- a/bsps/powerpc/beatnik/include/bsp/irq.h +++ b/bsps/powerpc/beatnik/include/bsp/irq.h @@ -25,6 +25,7 @@ #define BSP_SHARED_HANDLER_SUPPORT 1 #include <rtems/irq.h> #include <bsp/vectors.h> +#include <bsp/irq-default.h> /* This BSP also passes a pointer to the interrupt frame to the handler. * The PPC ABI guarantees that this will not mess up handlers written diff --git a/bsps/powerpc/haleakala/include/bsp/irq.h b/bsps/powerpc/haleakala/include/bsp/irq.h index c413ec3172..d4d1d818da 100644 --- a/bsps/powerpc/haleakala/include/bsp/irq.h +++ b/bsps/powerpc/haleakala/include/bsp/irq.h @@ -20,6 +20,8 @@ #ifndef ASM +#include <bsp/irq-default.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/bsps/powerpc/motorola_powerpc/include/bsp/irq.h b/bsps/powerpc/motorola_powerpc/include/bsp/irq.h index 2d575d8122..3690dbbff7 100644 --- a/bsps/powerpc/motorola_powerpc/include/bsp/irq.h +++ b/bsps/powerpc/motorola_powerpc/include/bsp/irq.h @@ -21,6 +21,7 @@ #define BSP_SHARED_HANDLER_SUPPORT 1 #include <rtems/irq.h> +#include <bsp/irq-default.h> /* * 8259 edge/level control definitions at VIA diff --git a/bsps/powerpc/mvme3100/include/bsp/irq.h b/bsps/powerpc/mvme3100/include/bsp/irq.h index fb11951959..b71d77660e 100644 --- a/bsps/powerpc/mvme3100/include/bsp/irq.h +++ b/bsps/powerpc/mvme3100/include/bsp/irq.h @@ -35,6 +35,8 @@ #ifndef ASM +#include <bsp/irq-default.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/bsps/powerpc/mvme5500/include/bsp/irq.h b/bsps/powerpc/mvme5500/include/bsp/irq.h index 6704c2f626..0a864f2925 100644 --- a/bsps/powerpc/mvme5500/include/bsp/irq.h +++ b/bsps/powerpc/mvme5500/include/bsp/irq.h @@ -32,6 +32,8 @@ #ifndef ASM +#include <bsp/irq-default.h> + #define OneTierIrqPrioTbl 1 /* diff --git a/bsps/powerpc/ss555/include/bsp/irq.h b/bsps/powerpc/ss555/include/bsp/irq.h index 44e39608b1..d1f44fc977 100644 --- a/bsps/powerpc/ss555/include/bsp/irq.h +++ b/bsps/powerpc/ss555/include/bsp/irq.h @@ -29,6 +29,8 @@ #ifndef ASM +#include <bsp/irq-default.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/bsps/powerpc/virtex4/include/bsp/irq.h b/bsps/powerpc/virtex4/include/bsp/irq.h index 45ef69adbf..4db8b3551e 100644 --- a/bsps/powerpc/virtex4/include/bsp/irq.h +++ b/bsps/powerpc/virtex4/include/bsp/irq.h @@ -20,6 +20,7 @@ #define VIRTEX4_IRQ_IRQ_H #include <rtems/irq.h> +#include <bsp/irq-default.h> /* * the following definitions specify the indices used diff --git a/bsps/powerpc/virtex5/include/bsp/irq.h b/bsps/powerpc/virtex5/include/bsp/irq.h index 066090de7f..a61a434236 100644 --- a/bsps/powerpc/virtex5/include/bsp/irq.h +++ b/bsps/powerpc/virtex5/include/bsp/irq.h @@ -20,6 +20,7 @@ #define VIRTEX5_IRQ_IRQ_H #include <rtems/irq.h> +#include <bsp/irq-default.h> /* * the following definitions specify the indices used diff --git a/bsps/sh/gensh1/include/bsp/irq.h b/bsps/sh/gensh1/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sh/gensh1/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/sh/gensh2/include/bsp/irq.h b/bsps/sh/gensh2/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sh/gensh2/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/sh/gensh4/include/bsp/irq.h b/bsps/sh/gensh4/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sh/gensh4/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/sh/shsim/include/bsp/irq.h b/bsps/sh/shsim/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sh/shsim/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/shared/irq-default-sources.am b/bsps/shared/irq-default-sources.am new file mode 100644 index 0000000000..1c4072e294 --- /dev/null +++ b/bsps/shared/irq-default-sources.am @@ -0,0 +1,8 @@ +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-generic.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-info.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-legacy.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-lock.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-server.c +librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-shell.c diff --git a/bsps/shared/irq/irq-default.c b/bsps/shared/irq/irq-default.c new file mode 100644 index 0000000000..9295f1fb44 --- /dev/null +++ b/bsps/shared/irq/irq-default.c @@ -0,0 +1,51 @@ +/** + * @file + * + * @ingroup RTEMSBSPsShared + */ + +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (C) 2019 embedded brains GmbH + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include <bsp/irq-generic.h> + +void bsp_interrupt_vector_enable(rtems_vector_number vector) +{ + bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector)); + (void)vector; +} + +void bsp_interrupt_vector_disable(rtems_vector_number vector) +{ + bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector)); + (void)vector; +} + +rtems_status_code bsp_interrupt_facility_initialize(void) +{ + return RTEMS_NOT_IMPLEMENTED; +} diff --git a/bsps/sparc64/niagara/include/bsp/irq.h b/bsps/sparc64/niagara/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sparc64/niagara/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/sparc64/usiii/include/bsp/irq.h b/bsps/sparc64/usiii/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/sparc64/usiii/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> diff --git a/bsps/v850/gdbv850sim/include/bsp/irq.h b/bsps/v850/gdbv850sim/include/bsp/irq.h new file mode 100644 index 0000000000..8a97d7a1b0 --- /dev/null +++ b/bsps/v850/gdbv850sim/include/bsp/irq.h @@ -0,0 +1 @@ +#include <bsp/irq-default.h> |