Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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