Re-add panic.o to IRAM/DRAM.

This commit is contained in:
Jeroen Domburg
2016-10-28 14:32:11 +08:00
parent a038a2b533
commit 309bd12855
2 changed files with 7 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
#include "esp_gdbstub.h"
#include "esp_panic.h"
#include "esp_attr.h"
/*
Panic handlers; these get called when an unhandled exception occurs or the assembly-level
@@ -38,6 +38,10 @@ task switching / interrupt code runs into an unrecoverable error. The default ta
overflow handler also is in here.
*/
/*
Note: The linker script will put everything in this file in IRAM/DRAM, so it also works with flash cache disabled.
*/
#if !CONFIG_ESP32_PANIC_SILENT_REBOOT
//printf may be broken, so we fix our own printing fns...
inline static void panicPutchar(char c) {