Explorar el Código

[kernel] fix the spinlock issue

BernardXiong hace 4 años
padre
commit
9660d3d737
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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
 {