[PATCH 1/1] include: sbi_scratch: fix typo sbi_scratch -> HART id
Anup Patel
anup at brainfault.org
Wed Jan 7 23:11:26 PST 2026
On Wed, Jan 7, 2026 at 8:56 AM Leo Yu-Chi Liang <ycliang at andestech.com> wrote:
>
> Fix "sbi_scratch" to "HART id" to better reflect its purpose.
>
> Signed-off-by: Leo Yu-Chi Liang <ycliang at andestech.com>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> 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
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list