Преглед изворни кода

[kernel] enable cpuport when USING_CACHE

BernardXiong пре 4 година
родитељ
комит
ba6a1a3a44
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      include/rthw.h

+ 8 - 0
include/rthw.h

@@ -200,6 +200,14 @@ typedef int rt_spinlock_t;
 
 #endif
 
+#ifdef RT_USING_CACHE
+#include <cpuport.h>
+#else
+#define rt_hw_isb()
+#define rt_hw_dmb()
+#define rt_hw_dsb()
+#endif
+
 #ifdef __cplusplus
 }
 #endif