Skip to content

Commit 146258b

Browse files
committed
FIx nightly builds
1 parent ddf131f commit 146258b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

riscv-rt/CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
12+
- Implementation of `default_mp_hook` when `single-hart` feature is enabled.
13+
1014
## [v0.12.1] - 2024-01-24
1115

1216
### Added

riscv-rt/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,10 +744,14 @@ pub static __INTERRUPTS: [Option<unsafe extern "C" fn()>; 12] = [
744744
pub extern "Rust" fn default_pre_init() {}
745745

746746
/// Default implementation of `_mp_hook` wakes hart 0 and busy-loops all the other harts.
747+
/// Users can override this function by defining their own `_mp_hook`.
748+
///
749+
/// # Note
750+
///
751+
/// If the `single-hart` feature is enabled, `_mp_hook` is not called.
747752
#[doc(hidden)]
748753
#[no_mangle]
749754
#[rustfmt::skip]
750-
#[cfg(not(feature = "single-hart"))]
751755
pub extern "Rust" fn default_mp_hook(hartid: usize) -> bool {
752756
match hartid {
753757
0 => true,

0 commit comments

Comments
 (0)