Browse Source

lib: RustSBI supports RISC-V SBI 2.0 ratified

RISC-V SBI 2.0 is ratified in documentation repository: https://github.com/riscv-non-isa/riscv-sbi-doc/commit/ed90b26fcc20de16035988aaf21c9e1c2b11447b

Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
Zhouqi Jiang 3 months ago
parent
commit
9acff1a98b
8 changed files with 10 additions and 10 deletions
  1. 1 1
      README.md
  2. 1 1
      sbi-rt/CHANGELOG.md
  3. 1 1
      sbi-rt/README.md
  4. 1 1
      sbi-rt/README_EN.md
  5. 1 1
      sbi-spec/CHANGELOG.md
  6. 1 1
      sbi-spec/README.md
  7. 2 2
      sbi-spec/src/lib.rs
  8. 2 2
      src/lib.rs

+ 1 - 1
README.md

@@ -50,7 +50,7 @@ Under normal circumstances these targets in Rust would start with `riscv??-` and
 
 - Feature rich and extensible operating system runtime
 - Empower support, compatibility for machines, hypervisors and emulators
-- Support to and develop with RISC-V SBI specification v2.0-rc1
+- Support to and develop with RISC-V SBI specification v2.0 ratified
 - Written in Rust, builds under stable Rust
 - Capable to develop with other firmware ecosystem projects
 - Adapted for operating system kernel models on your choice

+ 1 - 1
sbi-rt/CHANGELOG.md

@@ -9,7 +9,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [0.0.3]
 
-This version adds support to RISC-V SBI Specification version 2.0-rc7.
+This version adds support to RISC-V SBI Specification version 2.0 ratified.
 
 ### Added
 

+ 1 - 1
sbi-rt/README.md

@@ -8,7 +8,7 @@
 
 为特权软件提供 RISC-V 特权二进制接口(Supervisor Binary Interface)的运行时库。
 
-2.0-rc7 标准各章节的实现情况:
+2.0 标准各章节的实现情况:
 
 - [x] §3
 - [x] §4

+ 1 - 1
sbi-rt/README_EN.md

@@ -4,7 +4,7 @@
 
 Runtime library for supervisors to call RISC-V Supervisor Binary Interface (RISC-V SBI).
 
-Charaters implementation in 2.0-rc7 specification:
+Chapters implementation in 2.0 specification:
 
 - [x] §3
 - [x] §4

+ 1 - 1
sbi-spec/CHANGELOG.md

@@ -14,7 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
 
 ## [0.0.7] - 2023-12-08
 
-`sbi-spec` crate now supports RISC-V SBI version 2.0-rc7.
+`sbi-spec` crate now supports RISC-V SBI version 2.0 ratified.
 
 ### Added
 

+ 1 - 1
sbi-spec/README.md

@@ -8,7 +8,7 @@
 
 这个库用 Rust 实现了 [SBI 标准](https://github.com/riscv-non-isa/riscv-sbi-doc) 定义的常量和结构。
 
-2.0-rc7 标准各章节的实现情况:
+2.0 标准各章节的实现情况:
 
 - §3
   - [x] 常量

+ 2 - 2
sbi-spec/src/lib.rs

@@ -1,12 +1,12 @@
 //! RISC-V SBI Specification structure and constant definitions.
 //!
-//! This crate adapts to RISC-V SBI Specification verion 2.0-rc7.
+//! This crate adapts to RISC-V SBI Specification version 2.0 ratified.
 //! It provides structures in Rust semantics and best practices to simplify
 //! designs of RISC-V SBI ecosystem, both implementation and applications.
 //!
 //! You may find it convenient to use this library in a vast range of packages,
 //! from operating system kernels, hypervisors, to SBI bare metal implementations.
-//! This crate is `no_std` compatible and does not need dymanic memory allocation,
+//! This crate is `no_std` compatible and does not need dynamic memory allocation,
 //! which make it suitable for embedded development.
 //!
 //! Although this library is dedicated to RISC-V architecture, it does not limit

+ 2 - 2
src/lib.rs

@@ -87,7 +87,7 @@
 //!         ) },
 //!         #[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
 //!         () => {
-//!             drop((extension, function, arg0, arg1));
+//!             let _ = (extension, function, arg0, arg1);
 //!             unimplemented!("not RISC-V instruction set architecture")
 //!         }
 //!     };
@@ -563,7 +563,7 @@ pub const LOGO: &str = r".______       __    __      _______.___________.  _____
 |  |\  \----.|  `--'  |.----)   |      |  |  .----)   |   |  |_)  ||  |
 | _| `._____| \______/ |_______/       |__|  |_______/    |______/ |__|";
 
-// RustSBI supports RISC-V SBI specification 2.0-rc8.
+// RustSBI supports RISC-V SBI specification 2.0 ratified.
 const SBI_SPEC_MAJOR: usize = 2;
 const SBI_SPEC_MINOR: usize = 0;