chenhy0106 3 лет назад
Родитель
Сommit
fa944d8e3d
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      components/lwp/lwp.h
  2. 2 0
      components/lwp/lwp_pid.c

+ 1 - 1
components/lwp/lwp.h

@@ -122,7 +122,7 @@ struct rt_lwp
     uint32_t bak_first_ins;
 
     uint64_t generation;
-    unsigned asid;
+    unsigned int asid;
 };
 
 struct rt_lwp *lwp_self(void);

+ 2 - 0
components/lwp/lwp_pid.c

@@ -415,7 +415,9 @@ void lwp_free(struct rt_lwp* lwp)
     lwp_unmap_user_space(lwp);
 #endif
 
+#ifdef LWP_ENABLE_ASID
     arch_remove_asid(lwp);
+#endif
 
     level = rt_hw_interrupt_disable();
     /* for children */