diff options
| author | Shell <[email protected]> | 2024-09-02 16:38:42 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-09-11 18:06:51 -0400 |
| commit | 7528645f595f2b9d0e89a146ca477bb6849e64c5 (patch) | |
| tree | ea7dbea2adbb908959f614497ce4b4d993c4399a /libcpu/Kconfig | |
| parent | adbbd24ad77ccb7cc6312c38360aeb1909b08e31 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libcpu/Kconfig')
| -rw-r--r-- | libcpu/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcpu/Kconfig b/libcpu/Kconfig index ca5fdd9e34..37924d74c6 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -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 |
