mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 11:43:34 +08:00
[Kernel] Fix the thread->sp data type issue.
This commit is contained in:
parent
b9261e4340
commit
f9f959f33e
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user