From d6f6ae56fdd562a110516adfc9d68bbd33b8f3bf Mon Sep 17 00:00:00 2001 From: wangqinglin <53550140+HelloByeAll@users.noreply.github.com> Date: Mon, 26 Jun 2023 21:30:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgicv2=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=82=A6=E6=A0=B8=E5=A4=B1=E8=B4=A5=20(#7723)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcpu/aarch64/common/interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpu/aarch64/common/interrupt.c b/libcpu/aarch64/common/interrupt.c index 63a6c36286..7a93bfb250 100644 --- a/libcpu/aarch64/common/interrupt.c +++ b/libcpu/aarch64/common/interrupt.c @@ -389,7 +389,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, __asm__ volatile ("mrs %0, mpidr_el1":"=r"(cpu_affinity_val)); rt_hw_interrupt_set_target_cpus(vector, cpu_affinity_val); #else - rt_hw_interrupt_set_target_cpus(vector, rt_hw_cpu_id()); + rt_hw_interrupt_set_target_cpus(vector, 1 << rt_hw_cpu_id()); #endif /* BSP_USING_GICV3 */ } #endif