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:
Atish Patra
2020-05-09 16:47:32 -07:00
committed by Anup Patel
parent 1f235ec47f
commit 22c4334f5c
3 changed files with 89 additions and 0 deletions

View File

@@ -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",