fix the obj type bug in kernel

This commit is contained in:
mculover666
2021-07-21 11:48:24 +08:00
parent fb7715a3c5
commit 06291f5b6e

View File

@@ -32,6 +32,8 @@ __API__ k_err_t tos_sem_create_max(k_sem_t *sem, k_sem_cnt_t init_count, k_sem_c
pend_object_init(&sem->pend_obj);
TOS_OBJ_INIT(sem, KNL_OBJ_TYPE_SEMAPHORE);
knl_object_alloc_set_static(&sem->knl_obj);
return K_ERR_NONE;
}