alex
054251f810
Test upstream RISC-V SMP candidates on HERE VP
...
Build the SMP library and Moonlight board support against a selectable ThreadX source tree. Keep the pinned regression matrix and add RV32GC and RV64GC context tests. Adapt the direct timeout fixture to the RV64 timer extension and give timing-sensitive cases more phase coverage on HERE VP.
2026-11-27 11:13:06 +01:00
alex
f3dc14193c
Checked RISC-V SMP assembly offsets at build time
2026-11-27 10:49:31 +01:00
alex
608c4e0b0d
Updates NetX Duo to the upstream implementation
...
Uses the upstream ULONG APIs and passes RV64 callback pointers through ThreadX extension fields.
2026-11-26 18:56:36 +01:00
alex
d404e17e5a
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.
2026-11-26 18:56:36 +01:00
alex
26fd407a1e
Supplies stdlib declarations to NetX Duo add-ons
2026-11-26 18:56:17 +01:00
alex
fa665fcc2e
corrects saving of floating point registers
...
The previous implementation always made space for XLEN sized registers, in RV32D this leads to overlaps
2026-09-16 08:01:11 +02:00
alex
86c9d25b5f
adds markers to scheduler for identification for plugins
2026-07-06 12:31:15 +02:00
alex
1903fb0c9c
updates build system to support selection of Target memory, includes trace buffer
2026-05-28 12:44:29 +02:00
alex
d45a8f9231
formats files
2026-05-28 12:36:29 +02:00
alex
3955789298
corrects typo
2026-05-28 12:35:01 +02:00
alex
c3cd8c3fbd
Corrects TX_TIMER_TICKS to be correct
...
This caused socket timeouts when they shouldnt
2026-05-06 07:34:19 +01:00
alex
76398090b3
Corrects typing for UINT32, still same size but correct type now
...
This change is warranted by integrating the wolfssl netxduo sockets
2026-05-06 07:32:31 +01:00
alex
5b8c72cd9d
changes ULONG to UINT32 for 64bit netxduo
2026-04-12 19:10:55 +02:00
alex
ba39d23a18
adds hooks in bootup do move smp booting into the smp port lib
2026-04-10 14:40:21 +02:00
alex
d97e71ca83
updates test to work with new build system
2026-04-10 14:13:18 +02:00
alex
4c15a3e15f
enables tcp demo
2026-04-10 13:28:16 +02:00
alex
68057507c9
adds small cleanups towards updating the entire build system
2026-04-10 13:22:54 +02:00
alex
32df317b38
adds board header
2026-04-10 13:21:40 +02:00
alex
12ae01cda2
WIP: makes moonlight now the base library with no dependencies to be consumed by others
2026-04-10 13:14:40 +02:00
alex
ff0f81e9c0
corrects bootup code
...
not tested if tls actually works
2026-04-10 13:14:04 +02:00
alex
f989e21bad
makes uart.h now also provide init
2026-04-10 13:13:05 +02:00
alex
e3a7a9ccaf
adds missing build system changes from a prio commit
2026-04-10 13:12:35 +02:00
alex
c717297b30
removes more dependencies
2026-04-10 13:12:05 +02:00
alex
b16a0ed956
splits low_level_init to allow usage of c file
...
this also makes threadx hook into the isrs
2026-04-10 13:10:50 +02:00
alex
21f95341af
removes dependency of board.c to libc
2026-04-10 13:09:26 +02:00
alex
86025e020d
moves linker script file into moonlight
2026-04-10 12:35:55 +02:00
alex
27438ef6a5
also corrects LONG (not just ULONG)
2026-04-04 11:45:39 +02:00
alex
c0386ea4a1
makes bootup code work for any number of cores
2026-04-02 14:26:24 +02:00
alex
ffc49bc6a9
small formatting
2026-04-02 14:25:58 +02:00
alex
a6a6a034d6
removes convoluted generation of offsets
...
Ass ULONG is now 8 bytes on RV64, the SMP offset is the only one left, harcoding it as a magic number is simpler
2026-04-02 11:35:37 +02:00
alex
c16e6b0446
adjust SMP port to also use ULONG = 8 bytes
2026-04-02 10:48:43 +02:00
alex
eda2a85dc1
makes ULONG 64 bit on RV64
2026-04-02 10:31:12 +02:00
alex
824b71c283
adds csr.h to the moonlight port (adds duplicate as it is also in port/threadx/inc)
2026-03-31 16:13:34 +02:00
alex
7e2e162fe1
cleans up nx_port dependency
2026-03-31 16:09:44 +02:00
alex
dd0c837930
corrects stack alignment
2026-03-30 19:48:09 +02:00
alex
8a41f3e0fa
small cleanuo to smp asm files
2026-03-26 15:55:32 +01:00
alex
c9c2d2009f
adds regression for smp
2026-03-25 08:49:20 +01:00
alex
c11f68d20c
initial test harness for smp regression
2026-03-24 18:00:50 +01:00
alex
7253aadd52
corrects alignment for 64bit in port
2026-03-24 14:38:16 +01:00
alex
e02a58e25f
switches to tohost based exit code, reducing complexity in deciding failure / pass
2026-03-23 16:58:56 +01:00
alex
47ba20d762
Changes simulation ending mechanism (exit function)
...
As higher optimization might actually schedule a jump to self while waiting for timer interrupts this is a more robust implementation in that sense
2026-03-22 22:47:26 +01:00
alex
bbbdae160a
makes the timer tick actually every ms
2026-03-22 21:18:40 +01:00
alex
b8d4472657
corrects interrupt disable and restore macros
...
Turns out the port was really that shitty
2026-03-22 21:14:39 +01:00
alex
9947ce8d52
corrects naming of TX_INTERRUPT_SAVE_AREA to meet test expectations
...
Also corrects the sizes, as ULONG is XLEN bits
2026-03-22 15:56:00 +01:00
alex
7307a86860
adds ISR check that is closer to productive code
...
This approach patches the existing trap handler to call the test routine
2026-03-21 20:27:16 +01:00
alex
8bcbc9881e
Revert "adds testing hook for trap_non_vectored"
...
This reverts commit 014cf9f8ee .
2026-03-21 20:19:42 +01:00
alex
014cf9f8ee
adds testing hook for trap_non_vectored
2026-03-21 20:15:46 +01:00
alex
124783a57c
corrects exit
2026-03-21 20:15:33 +01:00
alex
c98ac25ca6
makes compilation of the network driver depend on netxduo being built
2026-03-21 18:19:45 +01:00
alex
be47608a03
corrects hwtimer TICKNUM
...
this change went unnoticed when moving the file into moonlight/inc
2026-03-21 17:53:43 +01:00