Просмотр исходного кода

[kernel] fix the spinlock issue

BernardXiong 4 лет назад
Родитель
Сommit
9660d3d737
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      include/rthw.h

+ 1 - 0
include/rthw.h

@@ -151,6 +151,7 @@ void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context));
 void rt_hw_us_delay(rt_uint32_t us);
 
 #ifdef RT_USING_SMP
+#include <cpuport.h> /* for spinlock from arch */
 
 struct rt_spinlock
 {