diff options
Diffstat (limited to 'nuttx/arch/z16/src/common/up_createstack.c')
-rw-r--r-- | nuttx/arch/z16/src/common/up_createstack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/z16/src/common/up_createstack.c b/nuttx/arch/z16/src/common/up_createstack.c index b2deb4bf0..fcbf90bfe 100644 --- a/nuttx/arch/z16/src/common/up_createstack.c +++ b/nuttx/arch/z16/src/common/up_createstack.c @@ -92,7 +92,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size) { /* Yes.. free it */ - sched_free(tcb->stack_alloc_ptr); + sched_ufree(tcb->stack_alloc_ptr); tcb->stack_alloc_ptr = NULL; } @@ -105,9 +105,9 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size) */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kmalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); #endif #ifdef CONFIG_DEBUG if (!tcb->stack_alloc_ptr) |