diff options
| author | heyuanjie87 <[email protected]> | 2024-11-29 09:39:41 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-29 09:39:41 +0800 |
| commit | 03a9729eb8beb002d5beca6433c31751415f6a11 (patch) | |
| tree | d7fbaa03fb3e4daec4af3cd1be8f2070acb2ae9b | |
| parent | b8746961b5c4efc0f9fe6cbd0e1931516252f4cc (diff) | |
[libcpu/riscv]解决smp下cpuport.h中的编译问题 (#9714)
| -rw-r--r-- | libcpu/risc-v/common64/cpuport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcpu/risc-v/common64/cpuport.h b/libcpu/risc-v/common64/cpuport.h index 0723a3c393..293f681c97 100644 --- a/libcpu/risc-v/common64/cpuport.h +++ b/libcpu/risc-v/common64/cpuport.h @@ -14,6 +14,8 @@ #include <rtconfig.h> #include <opcode.h> +#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 <rtdef.h> +#include <rtcompiler.h> rt_inline void rt_hw_dsb(void) { |
