mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
lib: sbi: Improve boot time print with additional PMP information
We know about pmp granularity and number of bits supported by PMP. Show those information in the boot time info print Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -59,7 +59,8 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Platform details */
|
/* Platform details */
|
||||||
sbi_printf("Platform Name : %s\n", sbi_platform_name(plat));
|
sbi_printf("Platform Name : %s\n",
|
||||||
|
sbi_platform_name(plat));
|
||||||
sbi_platform_get_features_str(plat, str, sizeof(str));
|
sbi_platform_get_features_str(plat, str, sizeof(str));
|
||||||
sbi_printf("Platform Features : %s\n", str);
|
sbi_printf("Platform Features : %s\n", str);
|
||||||
sbi_printf("Platform HART Count : %u\n",
|
sbi_printf("Platform HART Count : %u\n",
|
||||||
@@ -85,8 +86,16 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
|
|||||||
sbi_printf("Boot HART ISA : %s\n", str);
|
sbi_printf("Boot HART ISA : %s\n", str);
|
||||||
sbi_hart_get_features_str(scratch, str, sizeof(str));
|
sbi_hart_get_features_str(scratch, str, sizeof(str));
|
||||||
sbi_printf("Boot HART Features : %s\n", str);
|
sbi_printf("Boot HART Features : %s\n", str);
|
||||||
sbi_printf("Boot HART PMP Count : %d\n", sbi_hart_pmp_count(scratch));
|
sbi_printf("Boot HART PMP Count : %d\n",
|
||||||
sbi_printf("Boot HART MHPM Count: %d\n", sbi_hart_mhpm_count(scratch));
|
sbi_hart_pmp_count(scratch));
|
||||||
|
sbi_printf("Boot HART PMP Granularity : %lu\n",
|
||||||
|
sbi_hart_pmp_granularity(scratch));
|
||||||
|
sbi_printf("Boot HART PMP Address Bits: %d\n",
|
||||||
|
sbi_hart_pmp_addrbits(scratch));
|
||||||
|
sbi_printf("Boot HART MHPM Count : %d\n",
|
||||||
|
sbi_hart_mhpm_count(scratch));
|
||||||
|
sbi_printf("Boot HART MHPM Count : %d\n",
|
||||||
|
sbi_hart_mhpm_count(scratch));
|
||||||
sbi_hart_delegation_dump(scratch, "Boot HART ", " ");
|
sbi_hart_delegation_dump(scratch, "Boot HART ", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user