xtensa/esp32[|s2|s3]: Fix task backtrace dump

- Fix `MAKE_PC_FROM_RA` macro to consider the instruction region
base address;
- Add sanity check for calculated PC and SP registers;
- Check if the stack pointer is within the interrupt stack to
enable backtrace dump if an exception occurs during the ISR;
This commit is contained in:
Tiago Medicci Serrano
2024-09-04 16:25:57 -03:00
committed by Xiang Xiao
parent d6ee1742a9
commit cdeb720bf8
13 changed files with 133 additions and 27 deletions
@@ -48,4 +48,3 @@ CONFIG_START_YEAR=2011
CONFIG_SYSLOG_BUFFER=y
CONFIG_SYSTEM_NSH=y
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_XTENSA_INTBACKTRACE=y