Merge branch 'feature/hardware_check_task_overflow' into 'master'

esp8266: hardware check task stack overflow

See merge request sdk/ESP8266_RTOS_SDK!1237
This commit is contained in:
Dong Heng
2020-02-25 10:54:13 +08:00
7 changed files with 99 additions and 13 deletions

View File

@ -57,7 +57,12 @@ int xt_retaddr_callee(const void *i_pc, const void *i_sp, const void *i_lr, void
}
sp -= stk_size;
pc = *(uint32_t *)(sp - 4);
if (off <= 3) {
pc = lr;
} else {
pc = *(uint32_t *)(sp - 4);
}
*o_sp = (void *)sp;
*o_pc = (void *)pc;