Migrates plain ThreadX to the upstream RISC-V ports

Keeps the Moonlight startup objects local to the board. Updates the plain and SMP VP regression harnesses for the new ThreadX revision and replaces generated ISR hooks with direct callbacks.
This commit is contained in:
alex committed 2026-11-26 18:56:36 +01:00
1 parent 26fd407a1e
commit d404e17e5a
22 files changed
+148 -2311

No files matched your search

+1 -7
View File
@@ -11,15 +11,9 @@ set(THREADX_SMP_CUSTOM_INC
${CMAKE_CURRENT_SOURCE_DIR}/../moonlight/inc # needed for Moonlight SMP support headers
)
#required for tests to hook into the ISR path
if(NOT DEFINED THREADX_LOW_LEVEL_INIT_SOURCE)
set(THREADX_LOW_LEVEL_INIT_SOURCE
${CMAKE_CURRENT_LIST_DIR}/src/tx_initialize_low_level.c)
endif()
set(THREADX_SMP_CUSTOM_SRC
src/trap_entry.S
${THREADX_LOW_LEVEL_INIT_SOURCE}
src/tx_initialize_low_level.c
src/tx_thread_context_restore.S
src/tx_thread_context_save.S
src/tx_thread_interrupt_control.S
@@ -17,9 +17,17 @@ extern ULONG* _tx_thread_system_stack_ptr;
extern ULONG* _tx_initialize_unused_memory;
extern void _tx_thread_smp_initialize_wait(void) __attribute__((noreturn));
#ifdef TX_REGRESSION_TEST
extern void test_interrupt_dispatch(void) __attribute__((weak));
#endif
void handle_RISCV_INT_MTI(void)
{
hwtimer_handler();
#ifdef TX_REGRESSION_TEST
if (test_interrupt_dispatch)
test_interrupt_dispatch();
#endif
_tx_timer_interrupt();
}