@@ -144,9 +144,10 @@ rt_hw_get_gtimer_frq:
/* Set the SP to point to the stack of the task being restored. */
MOV SP, X0
+#ifdef RT_USING_LWP
bl lwp_check_debug
-
BL lwp_check_exit
+#endif
LDP X2, X3, [SP], #0x10 /* SPSR and ELR. */
@@ -186,6 +187,7 @@ rt_hw_get_gtimer_frq:
#ifdef RT_USING_LWP
+ bl lwp_check_debug
bl lwp_check_exit
#endif
@@ -246,9 +246,8 @@ rt_hw_context_switch_exit:
ldmfd sp!, {r1}
msr spsr_cxsf, r1 /* original mode */
- bl lwp_check_debug
@@ -505,9 +505,8 @@ rt_hw_context_switch_interrupt_do:
ldmfd sp!, {r4} /* pop new task's cpsr to spsr */
msr spsr_cxsf, r4