From 2b69e18fc37126c8dd85b439858ae1fa25cd37ad Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 5 Nov 2026 11:15:49 +0800 Subject: [libcpu][riscv] 修复 Smart MMU 与用户异常处理 (#11892) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正 RISC-V Smart 的地址映射、用户异常处理及玄铁平台配置。 --- libcpu/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libcpu/Kconfig') diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 7f3dfca11f..3b1edab250 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -288,6 +288,10 @@ config ARCH_RISCV64 select ARCH_CPU_64BIT bool +config ARCH_RISCV_XUANTIE + select ARCH_RISCV + bool + if ARCH_RISCV orsource "./risc-v/Kconfig" endif @@ -304,6 +308,14 @@ if ARCH_RISCV64 select ARCH_USING_NEW_CTX_SWITCH help Using the common64 implementation under ./libcpu/risc-v + +if RT_USING_SMART + config CONFIG_XUANTIE_SVPBMT + int + depends on ARCH_RISCV_XUANTIE + default 1 +endif + endif config ARCH_REMAP_KERNEL -- cgit v1.3.1