summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-05-10 09:19:59 +0300
committerAnup Patel <anup@brainfault.org>2020-05-19 06:49:39 +0300
commit3a8fc8135714e39bef99cbf2a4b31e6f2f19a929 (patch)
treebf745a2ef8360bb8cc2e0a838af96f6b2fee43de /lib
parent3aa1036f91a20d3cd9c83c9f0e4511db931f4d7d (diff)
downloadopensbi-3a8fc8135714e39bef99cbf2a4b31e6f2f19a929.tar.xz
lib: sbi: Print platform HART count just before boot HART id
On platforms with continuous HART ids starting from zero: 0 <= boot HART id < platform HART count The above co-relation of boot HART id and platform HART count is true for most RISC-V platfors so it's better to print platform HART count just before boot HART id. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi/sbi_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
index de54854..c573fd8 100644
--- a/lib/sbi/sbi_init.c
+++ b/lib/sbi/sbi_init.c
@@ -57,10 +57,10 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
/* Platform details */
sbi_printf("Platform Name : %s\n", sbi_platform_name(plat));
- sbi_printf("Platform HART Count : %u\n",
- sbi_platform_hart_count(plat));
sbi_platform_get_features_str(plat, str, sizeof(str));
sbi_printf("Platform Features : %s\n", str);
+ sbi_printf("Platform HART Count : %u\n",
+ sbi_platform_hart_count(plat));
/* Boot HART details */
sbi_printf("Boot HART ID : %u\n", hartid);