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

This commit is contained in:
heyuanjie87 2024-11-29 09:39:41 +08:00 committed by GitHub
parent b8746961b5
commit 03a9729eb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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 <rtcompiler.h>
#include <rtdef.h>
rt_inline void rt_hw_dsb(void) rt_inline void rt_hw_dsb(void)
{ {