From 8bbcc224dd865fcbc0a789bb1fce9f9c01394ca8 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 19 Jul 2023 23:06:33 +0400 Subject: [PATCH] fix(espcoredump): fix gcc 13.1.0 warnings --- .../espcoredump/src/port/xtensa/core_dump_port.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/espcoredump/src/port/xtensa/core_dump_port.c b/components/espcoredump/src/port/xtensa/core_dump_port.c index f89a0e0f19..fd17ac2584 100644 --- a/components/espcoredump/src/port/xtensa/core_dump_port.c +++ b/components/espcoredump/src/port/xtensa/core_dump_port.c @@ -290,16 +290,17 @@ void esp_core_dump_reset_fake_stacks(void) /* Get the top of the ISR stack. * Check core dump port interface for more information about this function. */ -uint8_t* esp_core_dump_get_isr_stack_top(void) { - extern uint8_t port_IntStack; - return &port_IntStack; +uint8_t* esp_core_dump_get_isr_stack_top(void) +{ + extern uint8_t port_IntStack[]; + return port_IntStack; } - uint32_t esp_core_dump_get_isr_stack_end(void) - { +uint32_t esp_core_dump_get_isr_stack_end(void) +{ uint8_t* isr_top_stack = esp_core_dump_get_isr_stack_top(); return (uint32_t)(isr_top_stack + (xPortGetCoreID()+1)*configISR_STACK_SIZE); - } +} static inline bool esp_core_dump_task_stack_end_is_sane(uint32_t sp)