mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: Add hart features in boot time print
We have now clear distinction between platform and hart features. Modify the boot print messages to print hart specific features in a string format. Signed-off-by: Atish Patra <atish.patra@wdc.com> Tested-by: Jonathan Balkind <jbalkind@cs.princeton.edu> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -73,6 +73,14 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
|
||||
/* Boot HART details */
|
||||
sbi_printf("Boot HART ID : %u\n", hartid);
|
||||
sbi_printf("Boot HART ISA : %s\n", str);
|
||||
|
||||
sbi_memset(features, 0, max_fstr_len);
|
||||
ret = sbi_hart_get_features_str(hartid, features, max_fstr_len);
|
||||
if (!ret)
|
||||
sbi_printf("BOOT HART Features : %s\n", features);
|
||||
else
|
||||
sbi_printf("BOOT HART Features : %s\n", "none");
|
||||
|
||||
/* Firmware details */
|
||||
sbi_printf("Firmware Base : 0x%lx\n", scratch->fw_start);
|
||||
sbi_printf("Firmware Size : %d KB\n",
|
||||
|
Reference in New Issue
Block a user