File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - Implementation of ` default_mp_hook ` when ` single-hart ` feature is enabled.
13
+
10
14
## [ v0.12.1] - 2024-01-24
11
15
12
16
### Added
Original file line number Diff line number Diff line change @@ -744,10 +744,14 @@ pub static __INTERRUPTS: [Option<unsafe extern "C" fn()>; 12] = [
744
744
pub extern "Rust" fn default_pre_init ( ) { }
745
745
746
746
/// 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.
747
752
#[ doc( hidden) ]
748
753
#[ no_mangle]
749
754
#[ rustfmt:: skip]
750
- #[ cfg( not( feature = "single-hart" ) ) ]
751
755
pub extern "Rust" fn default_mp_hook ( hartid : usize ) -> bool {
752
756
match hartid {
753
757
0 => true ,
You can’t perform that action at this time.
0 commit comments