[PATCH 1/1] include: sbi_scratch: fix typo sbi_scratch -> HART id
Leo Yu-Chi Liang
ycliang at andestech.com
Tue Jan 6 19:26:02 PST 2026
Fix "sbi_scratch" to "HART id" to better reflect its purpose.
Signed-off-by: Leo Yu-Chi Liang <ycliang at andestech.com>
---
include/sbi/sbi_scratch.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
index f1b4155d..58d54628 100644
--- a/include/sbi/sbi_scratch.h
+++ b/include/sbi/sbi_scratch.h
@@ -186,7 +186,7 @@ extern u32 sbi_scratch_hart_count;
/** HART index to HART id table */
extern u32 hartindex_to_hartid_table[];
-/** Get sbi_scratch from HART index */
+/** Get HART id from HART index */
#define sbi_hartindex_to_hartid(__hartindex) \
({ \
((__hartindex) < SBI_HARTMASK_MAX_BITS) ? \
--
2.34.1
More information about the opensbi
mailing list