feat: libcpu/risc-v: unify context on c906, virt64

Changes:
- added config for NEW_CTX_SWITCH
- used new context on c906 sched switch routine
- update _rt_hw_stack_init to fit into NEW_CTX_SWITCH
- separated vector ctx from the generic

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell
2024-09-11 18:06:51 -04:00
committed by Meco Man
parent adbbd24ad7
commit 7528645f59
25 changed files with 918 additions and 657 deletions
+8
View File
@@ -245,6 +245,9 @@ config ARCH_RISCV
config ARCH_RISCV_FPU
bool
config ARCH_RISCV_VECTOR
bool
config ARCH_RISCV_FPU_S
select ARCH_RISCV_FPU
bool
@@ -263,10 +266,15 @@ config ARCH_RISCV64
bool
if ARCH_RISCV64
config ARCH_USING_NEW_CTX_SWITCH
bool
default y
config ARCH_USING_RISCV_COMMON64
bool
depends on ARCH_RISCV64
select RT_USING_CPUTIME
select ARCH_USING_NEW_CTX_SWITCH
help
Using the common64 implementation under ./libcpu/risc-v
endif