From 4afdf44da2ec0bb9ea5cadde4b0b31b5c0f68c1b Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 25 Apr 2013 14:22:07 +0800 Subject: add RT_KERNEL_MALLOC/FREE --- src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread.c') 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 */ -- cgit v1.3.1