diff options
| author | Bernard Xiong <[email protected]> | 2018-12-14 22:46:34 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-12-14 22:46:34 +0800 |
| commit | f9f959f33e2cb81f1a4b77287fc51c96972a0137 (patch) | |
| tree | c7f2ce0ead44d2b41cbd3bc1b5d0233fce1fa74e /src | |
| parent | b9261e4340b29df4f9e26896b267c4c78cec6754 (diff) | |
[Kernel] Fix the thread->sp data type issue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scheduler.c b/src/scheduler.c index aafa1f4529..14f7510e66 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -264,9 +264,9 @@ void rt_system_scheduler_start(void) /* switch to new thread */ #ifdef RT_USING_SMP - rt_hw_context_switch_to((rt_uint32_t)&to_thread->sp, to_thread); + rt_hw_context_switch_to((rt_ubase_t)&to_thread->sp, to_thread); #else - rt_hw_context_switch_to((rt_uint32_t)&to_thread->sp); + rt_hw_context_switch_to((rt_ubase_t)&to_thread->sp); #endif /*RT_USING_SMP*/ /* never come back */ |
