mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-18 18:23:00 +08:00
bsps: Always build generic interrupt support
This makes it possible to write tests for the generic interrupt controller support. Update #3269.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#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 */
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.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
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <bsp/irq-default.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <bsp/irq-default.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <bsp/irq-default.h>
|
||||
|
||||
#define OneTierIrqPrioTbl 1
|
||||
|
||||
/*
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <bsp/irq-default.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include <bsp/irq-default.h>
|
||||
@@ -29,7 +29,7 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/TLL6527M/console/console.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/shared/cache/cache.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/TLL6527M/start/interrupt.c
|
||||
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/TLL6527M/headers.am
|
||||
|
||||
@@ -35,6 +35,7 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/bf537Stamp/net/networkconfi
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/bf537Stamp/net/ethernet.c
|
||||
endif
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/bf537Stamp/headers.am
|
||||
|
||||
@@ -30,7 +30,7 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/eZKit533/console/console-io
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/shared/cache/cache.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/bfin/shared/interrupt.c
|
||||
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/bfin/eZKit533/headers.am
|
||||
|
||||
@@ -42,6 +42,6 @@ if HAS_NETWORKING
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/lm32/shared/net/tsmac.c
|
||||
endif
|
||||
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/lm32/lm32_evr/headers.am
|
||||
|
||||
@@ -89,5 +89,6 @@ if HAS_NETWORKING
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/lm32/shared/net/network.c
|
||||
endif
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/lm32/milkymist/headers.am
|
||||
|
||||
@@ -41,5 +41,6 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/cache/cache-mcf5282.
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/m68kidle.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/memProbe.c
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/m68k/av5282/headers.am
|
||||
|
||||
@@ -37,5 +37,6 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/csb360/dev/timer.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/csb360/dev/timerisr.S
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/csb360/start/idle-mcf5272.c
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/m68k/csb360/headers.am
|
||||
|
||||
@@ -40,5 +40,6 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/cache/cache.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/m68kidle.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/m68k/shared/memProbe.c
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/m68k/gen68340/headers.am
|
||||
|
||||
@@ -49,5 +49,6 @@ if HAS_FPSP
|
||||
include $(srcdir)/../../../../../../bsps/m68k/shared/fpsp-sources.am
|
||||
endif
|
||||
|
||||
include $(srcdir)/../../../../../../bsps/shared/irq-default-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
|
||||
include $(srcdir)/../../../../../../bsps/m68k/gen68360/headers.am
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user