diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2019-03-27 17:58:49 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-03-29 13:19:11 +0300 |
commit | f9cfe301c92aede87e46069e66e250d4039e413e (patch) | |
tree | 9ad888e9926a14a20ba6b3d291ff9e8f8f056dcc /lib | |
parent | 215c200ccbf39d834dfb64771c8fa5a06ad5b4e0 (diff) | |
download | opensbi-f9cfe301c92aede87e46069e66e250d4039e413e.tar.xz |
lib: Disable the boot prints if SBI_SCRATCH_NO_BOOT_PRINTS is set
Use the newly introduced "options" in "struct sbi_scratch" to
conditionally disable the boot prints.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sbi_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c index bc27436..32ad822 100644 --- a/lib/sbi_init.c +++ b/lib/sbi_init.c @@ -91,7 +91,8 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - sbi_boot_prints(scratch, hartid); + if (!(scratch->options & SBI_SCRATCH_NO_BOOT_PRINTS)) + sbi_boot_prints(scratch, hartid); if (!sbi_platform_has_hart_hotplug(plat)) sbi_hart_wake_coldboot_harts(scratch, hartid); |