mirror of
https://github.com/laanwj/k210-sdk-stuff.git
synced 2024-11-22 09:26:21 +04:00
rust: Add comment
This commit is contained in:
parent
dd801e6ecc
commit
1e3cf00aed
@ -336,6 +336,7 @@ pub extern "Rust" fn mp_hook() -> bool {
|
|||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
if mhartid::read() == 1 {
|
if mhartid::read() == 1 {
|
||||||
|
// Running on second core
|
||||||
unsafe {
|
unsafe {
|
||||||
// Clear pending IPI that activated core 1
|
// Clear pending IPI that activated core 1
|
||||||
clear_ipi(1);
|
clear_ipi(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user