diff options
| author | geniusgogo <[email protected]> | 2023-04-12 13:12:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-12 13:12:27 +0800 |
| commit | 5bbcb5dc799cddc732c1cdc966d8d206e9120986 (patch) | |
| tree | 7abd8e5e5770c98e357e0a5b9dcb4531b43dd4c5 /include | |
| parent | dc24388833500ed278e4e643524d91dec8f110ee (diff) | |
fix tmpfs spinlock error. (#7216)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rthw.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
