Skip to content

Commit 03a9729

Browse files
authored
[libcpu/riscv]解决smp下cpuport.h中的编译问题 (#9714)
1 parent b874696 commit 03a9729

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libcpu/risc-v/common64/cpuport.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <rtconfig.h>
1515
#include <opcode.h>
1616

17+
#ifndef __ASSEMBLY__
18+
1719
#ifdef RT_USING_SMP
1820
typedef union {
1921
unsigned long slock;
@@ -24,8 +26,7 @@ typedef union {
2426
} rt_hw_spinlock_t;
2527
#endif
2628

27-
#ifndef __ASSEMBLY__
28-
#include <rtdef.h>
29+
#include <rtcompiler.h>
2930

3031
rt_inline void rt_hw_dsb(void)
3132
{

0 commit comments

Comments
 (0)