Skip to content

Commit

Permalink
Merge pull request #184 from rust-embedded/minor-releases
Browse files Browse the repository at this point in the history
Release new `riscv-peripheral` crate and minor patches
  • Loading branch information
romancardenas authored Feb 15, 2024
2 parents 539d4b7 + cadabef commit 798b8a3
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
2 changes: 2 additions & 0 deletions riscv-pac/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.1.1] - 2024-02-15

- Fix crates.io badge links

## [v0.1.0] - 2024-01-14
Expand Down
2 changes: 2 additions & 0 deletions riscv-peripheral/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.1.0] - 2024-02-15

### Added

- Add `ACLINT`, `CLINT`, and `PLIC` structs
4 changes: 2 additions & 2 deletions riscv-peripheral/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition = "2021"
[dependencies]
embedded-hal = "1.0.0"
embedded-hal-async = { version = "1.0.0", optional = true }
riscv = { path = "../riscv", version = "0.11.0" }
riscv-pac = { path = "../riscv-pac", version = "0.1.0" }
riscv = { path = "../riscv", version = "0.11.1" }
riscv-pac = { path = "../riscv-pac", version = "0.1.1" }

[dev-dependencies]
heapless = "0.8.0"
Expand Down
2 changes: 2 additions & 0 deletions riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.12.2] - 2024-02-15

### Added

- Implementation of `default_mp_hook` when `single-hart` feature is enabled.
Expand Down
4 changes: 2 additions & 2 deletions riscv-rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "riscv-rt"
version = "0.12.1"
version = "0.12.2"
rust-version = "1.60"
repository = "https://github.com/rust-embedded/riscv"
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
Expand All @@ -17,7 +17,7 @@ s-mode = []
single-hart = []

[dependencies]
riscv = {path = "../riscv", version = "0.11.0"}
riscv = {path = "../riscv", version = "0.11.1"}
riscv-rt-macros = { path = "macros", version = "0.2.1" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ pub extern "Rust" fn default_mp_hook(hartid: usize) -> bool {
match hartid {
0 => true,
_ => loop {
unsafe { riscv::asm::wfi() }
riscv::asm::wfi();
},
}
}
Expand Down
4 changes: 3 additions & 1 deletion riscv/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.11.1] - 2024-02-15

### Changed

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

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

Expand Down
2 changes: 1 addition & 1 deletion riscv/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "riscv"
version = "0.11.0"
version = "0.11.1"
edition = "2021"
rust-version = "1.60"
repository = "https://github.com/rust-embedded/riscv"
Expand Down
2 changes: 1 addition & 1 deletion riscv/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ instruction!(
///
/// Provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing.
/// The WFI instruction is just a hint, and a legal implementation is to implement WFI as a NOP.
, unsafe wfi, "wfi");
, wfi, "wfi");
instruction!(
/// `SFENCE.VMA` instruction wrapper (all address spaces and page table levels)
///
Expand Down

0 comments on commit 798b8a3

Please sign in to comment.