From f16ec531835f7664c612457838810769be874060 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Sun, 25 Apr 2021 14:14:52 +0800 Subject: [PATCH] [system]: put xtensa_intr_asm into IRAM --- components/xtensa/linker.lf | 1 + components/xtensa/xtensa_intr.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/xtensa/linker.lf b/components/xtensa/linker.lf index 157857b722..148116f1a1 100644 --- a/components/xtensa/linker.lf +++ b/components/xtensa/linker.lf @@ -2,6 +2,7 @@ archive: libxtensa.a entries: eri (noflash_text) + xtensa_intr_asm (noflash_text) if IDF_TARGET_ESP32S2 = y: stdatomic (noflash) diff --git a/components/xtensa/xtensa_intr.c b/components/xtensa/xtensa_intr.c index becb47a476..be728d0f9e 100644 --- a/components/xtensa/xtensa_intr.c +++ b/components/xtensa/xtensa_intr.c @@ -98,7 +98,7 @@ extern xt_handler_table_entry _xt_interrupt_table[XCHAL_NUM_INTERRUPTS*portNUM_P /* Default handler for unhandled interrupts. */ -void xt_unhandled_interrupt(void * arg) +void IRAM_ATTR xt_unhandled_interrupt(void * arg) { esp_rom_printf("Unhandled interrupt %d on cpu %d!\n", (int)arg, xPortGetCoreID()); }