From 1e3cf00aed32f2d1b24855fac81ef78599a781c5 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 19 Jun 2020 15:43:29 +0000 Subject: [PATCH] rust: Add comment --- rust/interrupt/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/interrupt/src/main.rs b/rust/interrupt/src/main.rs index 05094b1..496b9ef 100644 --- a/rust/interrupt/src/main.rs +++ b/rust/interrupt/src/main.rs @@ -336,6 +336,7 @@ pub extern "Rust" fn mp_hook() -> bool { #[entry] fn main() -> ! { if mhartid::read() == 1 { + // Running on second core unsafe { // Clear pending IPI that activated core 1 clear_ipi(1);