ソースを参照

rustsbi: announce 0.2.0 version

Signed-off-by: luojia65 <[email protected]>

rustsbi: oops

Signed-off-by: luojia65 <[email protected]>
luojia65 3 年 前
コミット
cc5fde0c71
3 ファイル変更14 行追加5 行削除
  1. 12 3
      CHANGELOG.md
  2. 1 1
      Cargo.toml
  3. 1 1
      src/util.rs

+ 12 - 3
CHANGELOG.md

@@ -1,11 +1,20 @@
 # Changelog
+
 All notable changes to this project will be documented in this file.
 
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
+to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## Unreleased
+
+### Added
+
+### Modified
+
+## [0.2.0] - 2022-02-13
 
-## [0.2.0] - 2021-02-23
 ### Added
+
 - Support for RISC-V SBI v0.3 Specification
 - S-level Illegal instruction exception is now delegated into S-level software handler
 - Support RFENCE extension in RustSBI framework

+ 1 - 1
Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "rustsbi"
 description = "Minimal RISC-V's SBI implementation library in Rust"
-version = "0.2.0-alpha.10"
+version = "0.2.0"
 authors = [
     "Luo Jia <[email protected]>",
     "Campbell He <[email protected]>",

+ 1 - 1
src/util.rs

@@ -95,7 +95,7 @@ impl<T: ?Sized> OnceFatBox<T> {
                 options(nostack)
             );
             // critical section begin
-            if self.thin_ptr.get().is_null() {
+            if (*self.thin_ptr.get()).is_null() { // not 'self.thin_ptr.get().is_null()'
                 *self.thin_ptr.get() = data_address;
                 *(self.meta.as_ptr() as *mut _) = ptr::metadata(fat_ptr);
                 ans = Ok(())