fix(esp_timer): preserve timer_process_alarm symbol for ldgen

This commit is contained in:
muhaidong
2026-09-11 16:00:29 +08:00
parent e088053614
commit 90fff319cd
4 changed files with 11 additions and 11 deletions
+3 -2
View File
@@ -385,10 +385,11 @@ static ESP_TIMER_IRAM_ATTR void timer_list_unlock(esp_timer_dispatch_t timer_typ
portEXIT_CRITICAL_SAFE(&s_timer_lock[timer_type]);
}
// Keep this as a standalone symbol because ldgen maps it by name.
#ifdef CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
static ESP_TIMER_IRAM_ATTR bool timer_process_alarm(esp_timer_dispatch_t dispatch_method)
static ESP_TIMER_IRAM_ATTR __attribute__((noinline, noclone)) bool timer_process_alarm(esp_timer_dispatch_t dispatch_method)
#else
static bool timer_process_alarm(esp_timer_dispatch_t dispatch_method)
static __attribute__((noinline, noclone)) bool timer_process_alarm(esp_timer_dispatch_t dispatch_method)
#endif
{
timer_list_lock(dispatch_method);