summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index 6a0927eb0b..5ab9e1b0c1 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -298,7 +298,7 @@ rt_thread_t rt_thread_create(const char *name,
if (thread == RT_NULL)
return RT_NULL;
- stack_start = (void *)rt_malloc(stack_size);
+ stack_start = (void *)RT_KERNEL_MALLOC(stack_size);
if (stack_start == RT_NULL)
{
/* allocate stack failure */