Skip to content

Commit

Permalink
[libcpu/riscv]解决smp下cpuport.h中的编译问题 (#9714)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 authored Nov 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b874696 commit 03a9729
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
@@ -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)
{

0 comments on commit 03a9729

Please sign in to comment.