arch/riscv/pmp: 修复 KernelProtectionPMP 和 KernelProtectionMMLEPMP 构造函数,使其在 rv64i 上运行
作者: lschuermann创建于 2026年7月28日更新于 2026年7月28日
目前,`KernelProtectionPMP` 和 `KernelProtectionMMLEPMP` 的构造函数都硬编码了 rv32i 的假设。虽然实际的配置代码路径已经在 #4874 中移植了,但仍需要修复这些问题。不过,现在可以合并 #4874,因为在 64 位系统上使用这些构造函数只会导致崩溃(`pmpcfg CSR 中的`unreachable`指令)。
内容来源: tock/tock