diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-05-09 16:47:32 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-10 10:30:47 +0530 |
commit | 22c4334f5c27c11cebeeba0a4426d26fcdb37327 (patch) | |
tree | dd73845419a7fc260d05bbdff8d00a63be11eb03 /lib/sbi/sbi_init.c | |
parent | 1f235ec47f85ba90916493c7eb1378b5427a66b5 (diff) |
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>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 2924784..f892582 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -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", |