From 03a9729eb8beb002d5beca6433c31751415f6a11 Mon Sep 17 00:00:00 2001 From: heyuanjie87 <943313837@qq.com> Date: Fri, 29 Nov 2024 09:39:41 +0800 Subject: [PATCH] =?UTF-8?q?[libcpu/riscv]=E8=A7=A3=E5=86=B3smp=E4=B8=8Bcpu?= =?UTF-8?q?port.h=E4=B8=AD=E7=9A=84=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?(#9714)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcpu/risc-v/common64/cpuport.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcpu/risc-v/common64/cpuport.h b/libcpu/risc-v/common64/cpuport.h index 0723a3c393a..293f681c971 100644 --- a/libcpu/risc-v/common64/cpuport.h +++ b/libcpu/risc-v/common64/cpuport.h @@ -14,6 +14,8 @@ #include #include +#ifndef __ASSEMBLY__ + #ifdef RT_USING_SMP typedef union { unsigned long slock; @@ -24,8 +26,7 @@ typedef union { } rt_hw_spinlock_t; #endif -#ifndef __ASSEMBLY__ -#include +#include rt_inline void rt_hw_dsb(void) {