mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 11:53:05 +08:00
[libcpu/riscv]解决smp下cpuport.h中的编译问题 (#9714)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user