From 41fd52502ce7dcfcca8a67b06dab68a8e4aa35b9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 5 Dec 2024 13:17:26 +0100 Subject: Add a note on HSM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hart lottery that we do on initialization is a bit rigged. Write a note on that in the documentation of the 'hart_lottery' variable. Signed-off-by: Miquel Sabaté Solà --- include/fbos/init.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fbos/init.h b/include/fbos/init.h index 592a7f1..1684518 100644 --- a/include/fbos/init.h +++ b/include/fbos/init.h @@ -22,6 +22,12 @@ // full speed. Actually, keeping things under a single hart simplifies things a // lot. // +// Also note that on both platforms I have tested this they had the HSM +// extension from the SBI specification. In this case, only one hart is woken +// up, and it's up to the supervisor to wake up the others through the HSM +// extension. Hence, for the platforms I have tried this the lottery was rigged +// from the beginning :) +// // Instantiated in kernel/main.c extern atomic32_t hart_lottery; -- cgit v1.2.3