summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rthw.h7
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