fix some calloc bug

1. some calloc fix
2. fix some document error
3. refactor kv API, to be compatible with ota API
This commit is contained in:
daishengdong
2020-04-24 11:58:42 +08:00
parent f6527d2d9a
commit 2e8c8c19e6
19 changed files with 77 additions and 93 deletions

View File

@@ -565,6 +565,7 @@ __API__ int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *
the_ctl->stackaddr = (is_stk_need_free ? stackaddr : K_NULL);
the_ctl->start_routine = start_routine;
the_ctl->arg = arg;
memset(&the_ctl->ktask, 0, sizeof(k_task_t));
stackaddr = (void *)((cpu_addr_t)stackaddr + PTHREAD_INFO_SIZE);
stacksize -= PTHREAD_INFO_SIZE;