Browse Source

[libcpu/riscv]解决smp下cpuport.h中的编译问题 (#9714)

heyuanjie87 8 tháng trước cách đây
mục cha
commit
03a9729eb8
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      libcpu/risc-v/common64/cpuport.h

+ 3 - 2
libcpu/risc-v/common64/cpuport.h

@@ -14,6 +14,8 @@
 #include <rtconfig.h>
 #include <rtconfig.h>
 #include <opcode.h>
 #include <opcode.h>
 
 
+#ifndef __ASSEMBLY__
+
 #ifdef RT_USING_SMP
 #ifdef RT_USING_SMP
 typedef union {
 typedef union {
     unsigned long slock;
     unsigned long slock;
@@ -24,8 +26,7 @@ typedef union {
 } rt_hw_spinlock_t;
 } rt_hw_spinlock_t;
 #endif
 #endif
 
 
-#ifndef __ASSEMBLY__
-#include <rtdef.h>
+#include <rtcompiler.h>
 
 
 rt_inline void rt_hw_dsb(void)
 rt_inline void rt_hw_dsb(void)
 {
 {