refactor(esp_system): factor the memprot panic report out of panic_arch.c

Move print_memprot_err_details() and its state out of the RISC-V panic_arch.c
into port/panic_memprot.c behind panic_memprot_fill_info(), so the report can
be shared with the Xtensa PMS targets. No functional change.
This commit is contained in:
harshal.patil
2026-08-26 15:04:50 +05:30
parent 08a66ea273
commit 9a201cdd1e
4 changed files with 96 additions and 77 deletions

View File

@@ -90,6 +90,10 @@ void panic_prepare_frame_from_ctx(void* frame);
void panic_clear_active_interrupts(const void* frame);
#if CONFIG_ESP_SYSTEM_MEMPROT && CONFIG_ESP_SYSTEM_MEMPROT_PMS && !CONFIG_IDF_TARGET_ESP32S2
bool panic_memprot_fill_info(panic_info_t *info);
#endif
/**
* @brief Disable all watchdog timers
*