mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user