Browse Source

Fix: `init_hsm` function is not exported

luojia65 4 years ago
parent
commit
8f11e666d4
2 changed files with 5 additions and 2 deletions
  1. 4 1
      CHANGELOG.md
  2. 1 1
      rustsbi/src/lib.rs

+ 4 - 1
CHANGELOG.md

@@ -15,11 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - Support SRST extension using test device on QEMU
 - Count harts from device tree binary on QEMU platform
 - Show hart id on panic for QEMU platform
-- Small fixes on library documents
 
 ### Modified
 - Use '#[naked]' instead of global assembly in newer Rust version for RustSBI platforms
 
+### Fixed
+- Fix `init_hsm` function which is not exported before
+- Small fixes on library documents
+
 ## [0.1.0] - 2020-12-26
 RustSBI is adapted to SBI standard with implementation number 4.
 ### Added

+ 1 - 1
rustsbi/src/lib.rs

@@ -51,7 +51,7 @@ pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
 pub use ecall::handle_ecall as ecall;
 pub use ecall::SbiRet;
 pub use hart_mask::HartMask;
-pub use hsm::Hsm;
+pub use hsm::{init_hsm, Hsm};
 pub use ipi::{init_ipi, Ipi};
 pub use logo::LOGO;
 pub use privileged::enter_privileged;