Clone of mbed rtos 2 for easy accessibility.
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_M/rt_System.c
- Revision:
- 120:4dc938e301cc
- Parent:
- 118:6635230e06ba
- Child:
- 123:58563e6cba1e
--- a/rtx/TARGET_CORTEX_M/rt_System.c Wed Aug 10 16:09:20 2016 +0100 +++ b/rtx/TARGET_CORTEX_M/rt_System.c Thu Aug 18 14:38:56 2016 +0100 @@ -313,22 +313,10 @@ /*--------------------------- rt_stk_check ----------------------------------*/ __weak void rt_stk_check (void) { -#ifdef __MBED_CMSIS_RTOS_CM - /* Check for stack overflow. */ - if (os_tsk.run->task_id == MAIN_THREAD_ID) { - // TODO: For the main thread the check should be done against the main heap pointer - } else { - if ((os_tsk.run->tsk_stack < (U32)os_tsk.run->stack) || - (os_tsk.run->stack[0] != MAGIC_WORD)) { - os_error (OS_ERR_STK_OVF); - } - } -#else if ((os_tsk.run->tsk_stack < (U32)os_tsk.run->stack) || (os_tsk.run->stack[0] != MAGIC_WORD)) { os_error (OS_ERR_STK_OVF); } -#endif } /*----------------------------------------------------------------------------