mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 10:31:03 +02:00
esp_system: fix gcc-12 compile errors
This commit is contained in:
@@ -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)
|
||||
|
@@ -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 = ®s;
|
||||
}
|
||||
|
||||
static void panic_print_basic_backtrace(const void *frame, int core)
|
||||
|
@@ -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]")
|
||||
|
Reference in New Issue
Block a user