This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8ec0f585199b600d7e3afcda30c56275bdbc028d Author: hujun5 <[email protected]> AuthorDate: Mon Nov 23 11:03:39 2026 +0800 fvp-v8r-aarch32: Restore IRQ initialization Moving the shared dispatch logic out of armv8-r/arm_doirq.c also removed the ARMv8-R up_irqinitialize() entry point. FVP then fails to link because no chip implementation initializes the GICv3. Add an FVP-specific IRQ initialization source that initializes the common GIC and CPU interface, colors the interrupt stack, and enables interrupts. Register it in both Make and CMake builds. Signed-off-by: hujun5 <[email protected]> --- arch/arm/src/fvp-v8r-aarch32/CMakeLists.txt | 2 +- arch/arm/src/fvp-v8r-aarch32/Make.defs | 2 +- arch/arm/src/fvp-v8r-aarch32/fvp_irq.c | 57 +++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/fvp-v8r-aarch32/CMakeLists.txt b/arch/arm/src/fvp-v8r-aarch32/CMakeLists.txt index 9e2f785afd5..f70ef539df9 100644 --- a/arch/arm/src/fvp-v8r-aarch32/CMakeLists.txt +++ b/arch/arm/src/fvp-v8r-aarch32/CMakeLists.txt @@ -20,6 +20,6 @@ # # ############################################################################## -set(SRCS fvp_boot.c fvp_serial.c) +set(SRCS fvp_boot.c fvp_irq.c fvp_serial.c) target_sources(arch PRIVATE ${SRCS}) diff --git a/arch/arm/src/fvp-v8r-aarch32/Make.defs b/arch/arm/src/fvp-v8r-aarch32/Make.defs index 38abc6b58fd..78331b45301 100644 --- a/arch/arm/src/fvp-v8r-aarch32/Make.defs +++ b/arch/arm/src/fvp-v8r-aarch32/Make.defs @@ -23,4 +23,4 @@ include armv8-r/Make.defs # fvp-specific C source files -CHIP_CSRCS = fvp_boot.c fvp_serial.c +CHIP_CSRCS = fvp_boot.c fvp_irq.c fvp_serial.c diff --git a/arch/arm/src/fvp-v8r-aarch32/fvp_irq.c b/arch/arm/src/fvp-v8r-aarch32/fvp_irq.c new file mode 100644 index 00000000000..42a9a9f48cc --- /dev/null +++ b/arch/arm/src/fvp-v8r-aarch32/fvp_irq.c @@ -0,0 +1,57 @@ +/**************************************************************************** + * arch/arm/src/fvp-v8r-aarch32/fvp_irq.c + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <nuttx/config.h> + +#include <nuttx/irq.h> + +#include "arm_internal.h" +#include "gic.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: up_irqinitialize + * + * Description: + * Initialize the interrupt subsystem. + * + ****************************************************************************/ + +void up_irqinitialize(void) +{ + /* Initialize the common GIC components and this CPU interface. */ + + arm_gic0_initialize(); + arm_gic_initialize(); + +#ifndef CONFIG_SUPPRESS_INTERRUPTS + arm_color_intstack(); + up_irq_enable(); +#endif +}
