Skip to content

Commit

Permalink
fix the obj type bug in kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Mculover666 committed Jul 21, 2021
1 parent fb7715a commit 06291f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/core/tos_sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 06291f5

Please sign in to comment.