diff options
Diffstat (limited to 'nuttx/arch/mips')
-rw-r--r-- | nuttx/arch/mips/src/common/up_createstack.c | 6 | ||||
-rw-r--r-- | nuttx/arch/mips/src/common/up_releasestack.c | 2 | ||||
-rw-r--r-- | nuttx/arch/mips/src/common/up_usestack.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/mips/src/common/up_createstack.c b/nuttx/arch/mips/src/common/up_createstack.c index 02cdd83d7..e4689fc7c 100644 --- a/nuttx/arch/mips/src/common/up_createstack.c +++ b/nuttx/arch/mips/src/common/up_createstack.c @@ -112,7 +112,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; } @@ -125,9 +125,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) diff --git a/nuttx/arch/mips/src/common/up_releasestack.c b/nuttx/arch/mips/src/common/up_releasestack.c index 7cbeb86e7..d507c3b7b 100644 --- a/nuttx/arch/mips/src/common/up_releasestack.c +++ b/nuttx/arch/mips/src/common/up_releasestack.c @@ -71,7 +71,7 @@ void up_release_stack(struct tcb_s *dtcb) { if (dtcb->stack_alloc_ptr) { - sched_free(dtcb->stack_alloc_ptr); + sched_ufree(dtcb->stack_alloc_ptr); dtcb->stack_alloc_ptr = NULL; } diff --git a/nuttx/arch/mips/src/common/up_usestack.c b/nuttx/arch/mips/src/common/up_usestack.c index 6fa521579..208c15bc0 100644 --- a/nuttx/arch/mips/src/common/up_usestack.c +++ b/nuttx/arch/mips/src/common/up_usestack.c @@ -89,7 +89,7 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size) if (tcb->stack_alloc_ptr) { - sched_free(tcb->stack_alloc_ptr); + sched_ufree(tcb->stack_alloc_ptr); } /* Save the stack allocation */ |