fix tmpfs spinlock error. (#7216)

This commit is contained in:
geniusgogo
2023-04-12 13:12:27 +08:00
committed by GitHub
parent dc24388833
commit 5bbcb5dc79
3 changed files with 28 additions and 26 deletions

View File

@@ -207,8 +207,11 @@ void rt_hw_secondary_cpu_idle_exec(void);
#define rt_hw_spin_lock(lock) *(lock) = rt_hw_interrupt_disable()
#define rt_hw_spin_unlock(lock) rt_hw_interrupt_enable(*(lock))
typedef int rt_spinlock_t;
typedef rt_ubase_t rt_spinlock_t;
struct rt_spinlock
{
rt_spinlock_t lock;
};
#endif
#ifdef RT_USING_CACHE