Răsfoiți Sursa

[Kernel] Fix the thread->sp data type issue.

Bernard Xiong 6 ani în urmă
părinte
comite
f9f959f33e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/scheduler.c

+ 2 - 2
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 */