From 014cf9f8eede42d4ac718b37c5e478cc3616b9c7 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sat, 21 Mar 2026 20:15:46 +0100 Subject: [PATCH] adds testing hook for trap_non_vectored --- port/moonlight/src/trap_non_vectored.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/port/moonlight/src/trap_non_vectored.c b/port/moonlight/src/trap_non_vectored.c index 0f891d7..90c5d21 100644 --- a/port/moonlight/src/trap_non_vectored.c +++ b/port/moonlight/src/trap_non_vectored.c @@ -18,6 +18,9 @@ extern void _tx_timer_interrupt(void); extern uintptr_t exception(uintptr_t mcause, uintptr_t mepc, uintptr_t mtval); +#ifdef TX_REGRESSION_TEST +extern void test_interrupt_dispatch(void); +#endif void (*irq_handler[__riscv_xlen])(); @@ -38,6 +41,9 @@ void trap_handler(uintptr_t mcause, uintptr_t mepc, uintptr_t mtval) { printf("Timer interrupt being handled (pc=%lx)\n", mepc); #endif hwtimer_handler(); +#ifdef TX_REGRESSION_TEST + test_interrupt_dispatch(); +#endif _tx_timer_interrupt(); break; #ifdef TX_THREAD_SMP_INTER_CORE_INTERRUPT