summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-11-06 12:54:49 +0300
committerAnup Patel <anup@brainfault.org>2021-11-08 08:09:31 +0300
commit2fe2f55d5050aac546d35616f2944f889a9c8d6e (patch)
tree0b030c44fddd36ea3bb7a98d18148cfe4fe76f62
parent0979ffda12b636fab58228c2b40bab1e2f6b327b (diff)
downloadopensbi-2fe2f55d5050aac546d35616f2944f889a9c8d6e.tar.xz
lib: sbi: move sbi_boot_print_general()
Moving the sbi_boot_print_general() call after the sbi_platform_final_init() call allows to print devices initialized in the latter. To keep the overall print sequence the same also move sbi_boot_print_domains(). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
-rw-r--r--lib/sbi/sbi_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
index b1c7cf0..83043c5 100644
--- a/lib/sbi/sbi_init.c
+++ b/lib/sbi/sbi_init.c
@@ -301,8 +301,6 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
sbi_hart_hang();
}
- sbi_boot_print_general(scratch);
-
/*
* Note: Finalize domains after HSM initialization so that we
* can startup non-root domains.
@@ -316,8 +314,6 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
sbi_hart_hang();
}
- sbi_boot_print_domains(scratch);
-
rc = sbi_hart_pmp_configure(scratch);
if (rc) {
sbi_printf("%s: PMP configure failed (error %d)\n",
@@ -336,6 +332,10 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
sbi_hart_hang();
}
+ sbi_boot_print_general(scratch);
+
+ sbi_boot_print_domains(scratch);
+
sbi_boot_print_hart(scratch, hartid);
wake_coldboot_harts(scratch, hartid);