summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rthw.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/rthw.h b/include/rthw.h
index 1b4380c479..67a44acd17 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -227,7 +227,8 @@ void rt_hw_secondary_cpu_up(void);
* secondary cpu idle function
*/
void rt_hw_secondary_cpu_idle_exec(void);
-#else
+
+#else /* !RT_USING_SMP */
#define RT_DEFINE_HW_SPINLOCK(x) rt_ubase_t x
@@ -235,13 +236,13 @@ void rt_hw_secondary_cpu_idle_exec(void);
#define rt_hw_spin_unlock(lock) rt_hw_interrupt_enable(*(lock))
-#endif
+#endif /* RT_USING_SMP */
#ifndef RT_USING_CACHE
-#define rt_hw_isb()
-#define rt_hw_dmb()
-#define rt_hw_dsb()
-#endif
+ #define rt_hw_isb()
+ #define rt_hw_dmb()
+ #define rt_hw_dsb()
+#endif /* RT_USING_CACHE */
#ifdef __cplusplus
}