RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.61k stars 5.04k forks source link

[Bug] it's not proper to define RISCV_S_MODE in bsp level #9670

Open unicornx opened 2 weeks ago

unicornx commented 2 weeks ago

RT-Thread Version

master

Hardware Type/Architectures

bsp/qemu-virt64-riscv

Develop Toolchain

Other

Describe the bug

搜索 RISCV_S_MODE 会发现这个宏开关影响的是 libcpu 层级的代码。

可是目前这个配置开关却定义在 bsp/qemu-virt64-riscv/driver/Kconfig,这是不合理的。

应该定义在内核 libcpu 中,bsp 使用(select) 就好了。

Other additional context

No response

WwWangGuan commented 1 day ago

issue补领一下,感谢