Skip to content

Commit

Permalink
[libcpu/riscv]解决smp下cpuport.h中的编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 committed Nov 27, 2024
1 parent e5bc2db commit f24047c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcpu/risc-v/common64/cpuport.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <rtconfig.h>
#include <opcode.h>

#ifndef __ASSEMBLY__

#ifdef RT_USING_SMP
typedef union {
unsigned long slock;
Expand All @@ -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)
{
Expand Down

0 comments on commit f24047c

Please sign in to comment.