esp_system: fix gcc-12 compile errors

This commit is contained in:
Alexey Lapshin
2023-02-06 11:35:34 +07:00
parent d4b7be4a73
commit 49af663dfb
3 changed files with 2 additions and 3 deletions

View File

@@ -55,7 +55,6 @@ static void esp_dbg_stubs_data_free(void *addr)
{
ESP_LOGV(TAG, "%s %p", __func__, addr);
free(addr);
ESP_LOGV(TAG, "%s EXIT %p", __func__, addr);
}
void esp_dbg_stubs_init(void)

View File

@@ -348,7 +348,6 @@ void panic_arch_fill_info(void *frame, panic_info_t *info)
info->description = "Exception was unhandled.";
info->addr = (void *) regs->mepc;
info->frame = &regs;
}
static void panic_print_basic_backtrace(const void *frame, int core)

View File

@@ -19,6 +19,7 @@
#include "esp_intr_alloc.h"
#include "esp_rom_sys.h"
#include "esp_rom_uart.h"
#include "hal/misc.h"
#define SW_ISR_LEVEL_1 7
#define SW_ISR_LEVEL_3 29
@@ -83,7 +84,7 @@ TEST_CASE("Test backtrace from interrupt watchdog timeout", "[reset_reason][rese
static void write_char_crash(char c)
{
esp_rom_uart_putc(c);
*(char*) 0x00000001 = 0;
hal_memset((void *)0x00000001, 0, 1);
}
TEST_CASE("Test backtrace with a ROM function", "[reset_reason][reset=StoreProhibited,SW_CPU_RESET]")