From 5bbcb5dc799cddc732c1cdc966d8d206e9120986 Mon Sep 17 00:00:00 2001 From: geniusgogo <2041245+geniusgogo@users.noreply.github.com> Date: Wed, 12 Apr 2023 13:12:27 +0800 Subject: fix tmpfs spinlock error. (#7216) --- include/rthw.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rthw.h b/include/rthw.h index 247b4b3d2d..602866b095 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -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 -- cgit v1.3.1