|
@@ -109,6 +109,9 @@ static void kernel_set_task_context (INIT_MODE_
|
|
|
|
|
|
// Initialize CPSR
|
|
// Initialize CPSR
|
|
ptr->mXPSR = 1 << 24 ; // Thumb bit
|
|
ptr->mXPSR = 1 << 24 ; // Thumb bit
|
|
|
|
+
|
|
|
|
+ // Self termination
|
|
|
|
+ ptr->mLR = (uint32_t) taskSelfTerminates;
|
|
}
|
|
}
|
|
|
|
|
|
// T A S K C O N T R O L B L O C K *
|
|
// T A S K C O N T R O L B L O C K *
|