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

+16
View File
@@ -0,0 +1,16 @@
#include "hwtimer.h"
void __real__tx_timer_interrupt(void);
void __wrap__tx_timer_interrupt(void)
{
static uint32_t sequence = 1;
/* Vary each interval by one ACLINT count so the periodic ISR samples
different points in the test thread's preemption-disable loop. */
sequence = sequence * 1664525u + 1013904223u;
uint64_t next = get_aclint_mtimecmp(aclint);
set_aclint_mtimecmp(aclint, (sequence >> 31) ? next + 1 : next - 1);
__real__tx_timer_interrupt();
}