feat(gdbstub): fix access to PSRAM for esp32p4

This commit is contained in:
Alexey Lapshin 2024-03-12 18:09:43 +04:00
parent 56756a799e
commit 18e0fe7842
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "esp_gdbstub.h"
#include "esp_gdbstub_common.h"
#include "esp_cpu.h"
#include "esp_ipc_isr.h"
#include "rv_decode.h"
#include "sdkconfig.h"
#include "esp_private/crosscore_int.h"

View File

@ -31,6 +31,9 @@ static inline bool __is_valid_memory_region(intptr_t addr)
#endif
#if defined(SOC_CPU_SUBSYSTEM_LOW) && defined(SOC_CPU_SUBSYSTEM_HIGH)
(addr >= SOC_CPU_SUBSYSTEM_LOW && addr < SOC_CPU_SUBSYSTEM_HIGH) ||
#endif
#if defined(SOC_EXTRAM_LOW) && defined(SOC_EXTRAM_HIGH)
(addr >= SOC_EXTRAM_LOW && addr < SOC_EXTRAM_HIGH) ||
#endif
(addr >= SOC_PERIPHERAL_LOW && addr < SOC_PERIPHERAL_HIGH);
}