[PATCH 4/5] lib: sbi: Print the RW section offset

Anup Patel anup at brainfault.org
Tue Jan 17 23:52:43 PST 2023


On Mon, Jan 9, 2023 at 2:11 PM Himanshu Chauhan
<hchauhan at ventanamicro.com> wrote:
>
> Print the RW section offset when firmware base and size is
> being printed.
>
> Signed-off-by: Himanshu Chauhan <hchauhan at ventanamicro.com>

Looks good to me.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup

> ---
>  lib/sbi/sbi_init.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
> index 259a191..e353c33 100644
> --- a/lib/sbi/sbi_init.c
> +++ b/lib/sbi/sbi_init.c
> @@ -108,6 +108,7 @@ static void sbi_boot_print_general(struct sbi_scratch *scratch)
>         sbi_printf("Firmware Base             : 0x%lx\n", scratch->fw_start);
>         sbi_printf("Firmware Size             : %d KB\n",
>                    (u32)(scratch->fw_size / 1024));
> +       sbi_printf("Firmware RW Offset        : 0x%lx\n", scratch->fw_rw_offset);
>
>         /* SBI details */
>         sbi_printf("Runtime SBI Version       : %d.%d\n",
> --
> 2.39.0
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list