diff --git a/components/esp_hw_support/include/hal/cpu_hal.h b/components/esp_hw_support/include/hal/cpu_hal.h index 6fd94b2d69..17a96151da 100644 --- a/components/esp_hw_support/include/hal/cpu_hal.h +++ b/components/esp_hw_support/include/hal/cpu_hal.h @@ -136,7 +136,7 @@ static inline void cpu_hal_clear_watchpoint(int id) * * @param base address to move the exception vector table to */ -static inline void cpu_hal_set_vecbase(const void *base) +static inline __attribute__((always_inline)) void cpu_hal_set_vecbase(const void *base) { esp_cpu_intr_set_ivt_addr(base); }