Skip to content

Commit 798b8a3

Browse files
Merge pull request #184 from rust-embedded/minor-releases
Release new `riscv-peripheral` crate and minor patches
2 parents 539d4b7 + cadabef commit 798b8a3

File tree

9 files changed

+16
-8
lines changed

9 files changed

+16
-8
lines changed

riscv-pac/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.1.1] - 2024-02-15
11+
1012
- Fix crates.io badge links
1113

1214
## [v0.1.0] - 2024-01-14

riscv-peripheral/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.1.0] - 2024-02-15
11+
1012
### Added
1113

1214
- Add `ACLINT`, `CLINT`, and `PLIC` structs

riscv-peripheral/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2021"
88
[dependencies]
99
embedded-hal = "1.0.0"
1010
embedded-hal-async = { version = "1.0.0", optional = true }
11-
riscv = { path = "../riscv", version = "0.11.0" }
12-
riscv-pac = { path = "../riscv-pac", version = "0.1.0" }
11+
riscv = { path = "../riscv", version = "0.11.1" }
12+
riscv-pac = { path = "../riscv-pac", version = "0.1.1" }
1313

1414
[dev-dependencies]
1515
heapless = "0.8.0"

riscv-rt/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.12.2] - 2024-02-15
11+
1012
### Added
1113

1214
- Implementation of `default_mp_hook` when `single-hart` feature is enabled.

riscv-rt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "riscv-rt"
3-
version = "0.12.1"
3+
version = "0.12.2"
44
rust-version = "1.60"
55
repository = "https://github.com/rust-embedded/riscv"
66
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
@@ -17,7 +17,7 @@ s-mode = []
1717
single-hart = []
1818

1919
[dependencies]
20-
riscv = {path = "../riscv", version = "0.11.0"}
20+
riscv = {path = "../riscv", version = "0.11.1"}
2121
riscv-rt-macros = { path = "macros", version = "0.2.1" }
2222

2323
[dev-dependencies]

riscv-rt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ pub extern "Rust" fn default_mp_hook(hartid: usize) -> bool {
756756
match hartid {
757757
0 => true,
758758
_ => loop {
759-
unsafe { riscv::asm::wfi() }
759+
riscv::asm::wfi();
760760
},
761761
}
762762
}

riscv/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.11.1] - 2024-02-15
11+
1012
### Changed
1113

12-
- Made `asm::fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions)
14+
- Made `asm::wfi`, `fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions)
1315

1416
## [v0.11.0] - 2024-01-14
1517

riscv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "riscv"
3-
version = "0.11.0"
3+
version = "0.11.1"
44
edition = "2021"
55
rust-version = "1.60"
66
repository = "https://github.com/rust-embedded/riscv"

riscv/src/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ instruction!(
4848
///
4949
/// Provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing.
5050
/// The WFI instruction is just a hint, and a legal implementation is to implement WFI as a NOP.
51-
, unsafe wfi, "wfi");
51+
, wfi, "wfi");
5252
instruction!(
5353
/// `SFENCE.VMA` instruction wrapper (all address spaces and page table levels)
5454
///

0 commit comments

Comments
 (0)