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.
This commit is contained in:
1 parent
f3dc14193c
commit
054251f810
12 files changed
+363
-251
No files matched your search
@@ -59,27 +59,24 @@
|
||||
/** */
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
.global trap_entry
|
||||
.extern _tx_thread_context_restore
|
||||
trap_entry:
|
||||
addi sp, sp, -TX_INTERRUPT_FRAME_SIZE
|
||||
.balign 4
|
||||
.global trap_entry
|
||||
.type trap_entry, @function
|
||||
trap_entry:
|
||||
addi sp, sp, -TX_RISCV_TRAP_FRAME_SIZE
|
||||
#if __riscv_xlen == 64
|
||||
sd ra, 28*8(sp)
|
||||
#else
|
||||
sw ra, 28*4(sp)
|
||||
#endif
|
||||
call _tx_thread_context_save
|
||||
|
||||
STORE x1, 28*REGBYTES(sp) // Store RA, 28*REGBYTES(because call will override ra [ra is a calle register in riscv])
|
||||
csrr a0, mcause
|
||||
csrr a1, mepc
|
||||
csrr a2, mtval
|
||||
call trap_handler
|
||||
tail _tx_thread_context_restore
|
||||
|
||||
call _tx_thread_context_save
|
||||
|
||||
csrr a0, mcause
|
||||
csrr a1, mepc
|
||||
csrr a2, mtval
|
||||
addi sp, sp, -16 // Keep the C handler stack aligned
|
||||
STORE ra, 0(sp)
|
||||
call trap_handler
|
||||
LOAD ra, 0(sp)
|
||||
addi sp, sp, 16
|
||||
call _tx_thread_context_restore
|
||||
// it will nerver return
|
||||
.weak trap_handler
|
||||
.weak trap_handler
|
||||
trap_handler:
|
||||
1:
|
||||
j 1b
|
||||
.section .text
|
||||
j trap_handler
|
||||
Reference in new issue
Block a user