rcore-os / rCore-Tutorial-v3

Let's write an OS which can run on RISC-V in Rust from scratch!
https://rcore-os.github.io/rCore-Tutorial-Book-v3/index.html
GNU General Public License v3.0
1.58k stars 452 forks source link

chp1 分支上的 rustsbi 版本不能支持 shutdown #127

Closed LimingFang closed 11 months ago

LimingFang commented 11 months ago

目前 chp1 上是直接使用 sbi-rt 完成的关机,但是教学文档里是自己定义 rustsbi 函数实现 shutdown 功能: image 但是估计是 chp1 附带的 rustsbi 版本不对,ecall 后没有正常关机

wyfcyx commented 11 months ago

现在仓库里面的rustsbi对齐到sbi spec 1.0以上版本,其中shutdown作为legacy接口,rustsbi已经不支持了,而是用system reset拓展来实现同样的功能。近几天我会更新一下文档。