Procházet zdrojové kódy

Add detailed information for RustSBI's impl_id

luojia65 před 4 roky
rodič
revize
642fc2a68a
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      rustsbi/src/lib.rs

+ 4 - 1
rustsbi/src/lib.rs

@@ -33,8 +33,11 @@ mod timer;
 const SBI_SPEC_MAJOR: usize = 0;
 const SBI_SPEC_MINOR: usize = 2;
 
+// RustSBI implementation ID: 4
+// Ref: https://github.com/riscv/riscv-sbi-doc/pull/61
 const IMPL_ID_RUSTSBI: usize = 4;
-const RUSTSBI_VERSION: usize = 1; // todo: read from env!("CARGO_PKG_VERSION")
+// todo: read from env!("CARGO_PKG_VERSION")
+const RUSTSBI_VERSION: usize = 1; 
 
 pub use ecall::handle_ecall as ecall;
 pub use hart_mask::HartMask;