Merge branch 'feature/enable_cache_when_panic' into 'master'

feat(freertos): Enable cache when panic

See merge request sdk/ESP8266_RTOS_SDK!265
This commit is contained in:
Wu Jian Gang
2018-07-05 14:54:19 +08:00

View File

@ -89,6 +89,9 @@ static void IRAM_ATTR panic_stack(StackType_t *start, StackType_t *end)
*/ */
void IRAM_ATTR panicHandler(void *frame) void IRAM_ATTR panicHandler(void *frame)
{ {
// for panic the function that disable cache
Cache_Read_Enable_New();
int *regs = (int *)frame; int *regs = (int *)frame;
int x, y; int x, y;
const char *sdesc[] = { const char *sdesc[] = {