1
0
Эх сурвалжийг харах

fix unsigned to unsigned int

chenhy0106 3 жил өмнө
parent
commit
fa944d8e3d

+ 1 - 1
components/lwp/lwp.h

@@ -122,7 +122,7 @@ struct rt_lwp
     uint32_t bak_first_ins;
     uint32_t bak_first_ins;
 
 
     uint64_t generation;
     uint64_t generation;
-    unsigned asid;
+    unsigned int asid;
 };
 };
 
 
 struct rt_lwp *lwp_self(void);
 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);
     lwp_unmap_user_space(lwp);
 #endif
 #endif
 
 
+#ifdef LWP_ENABLE_ASID
     arch_remove_asid(lwp);
     arch_remove_asid(lwp);
+#endif
 
 
     level = rt_hw_interrupt_disable();
     level = rt_hw_interrupt_disable();
     /* for children */
     /* for children */