mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
fix tmpfs spinlock error. (#7216)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user