Browse Source

Small fix

luojia65 4 years ago
parent
commit
305702f301
2 changed files with 6 additions and 0 deletions
  1. 2 0
      README.md
  2. 4 0
      src/lib.rs

+ 2 - 0
README.md

@@ -1 +1,3 @@
 # RustSBI
+
+RISC-V Supervisor Binary Interface implementation in Rust; runs on M-mode.

+ 4 - 0
src/lib.rs

@@ -3,10 +3,13 @@
 这个库的功能:
 1. 在M特权运行,帮助用户搭建运行时,暴露为SBI接口使用的接口
 2. 提供简单的pmp配置
+3. 帮助用户搭建设备树
 
 设计应该像积木一样,允许用户自己选择模块,而不是提供一个运行时
 建议用户配合riscv-sbi-rt使用
 
+todo:考虑这个库是不是单例的。
+
 */
 
 #![no_std]
@@ -44,6 +47,7 @@ impl<'b> Builder<'b> {
         todo!()
     }
 }
+
 // todo: 修改API
 /// RustSBI instance
 pub struct Instance<'a> {