summaryrefslogtreecommitdiff
path: root/src/scheduler.c
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-10-28 01:21:47 +0000
committerqiuyiuestc <[email protected]>2010-10-28 01:21:47 +0000
commitfb7d4122fc97be364cf2ce76380b0e5465aba7eb (patch)
tree5149aa8116873baaeb7b8e9cb7160a5011aa10bd /src/scheduler.c
parenta6f06d24cfec32dddee27a1ce61920fc4007d68a (diff)
implement module memory allocator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1030 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/scheduler.c')
-rw-r--r--src/scheduler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scheduler.c b/src/scheduler.c
index d14328feba..340c01bb27 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -264,8 +264,8 @@ void rt_schedule()
rt_current_thread = to_thread;
#ifdef RT_USING_MODULE
- rt_module_set ((rt_current_thread->module_parent != RT_NULL) ?
- rt_current_thread->module_parent : RT_NULL);
+ rt_module_set ((rt_current_thread->module_id != RT_NULL) ?
+ (rt_module_t)rt_current_thread->module_id : RT_NULL);
#endif
#ifdef RT_USING_HOOK