From f9cfe301c92aede87e46069e66e250d4039e413e Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Wed, 27 Mar 2019 22:58:49 +0800 Subject: 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 --- include/sbi/sbi_scratch.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/sbi/sbi_scratch.h') diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index 4cba233..759e564 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -70,6 +70,12 @@ struct sbi_scratch { unsigned long options; } __packed; +/** Possible options for OpenSBI library */ +enum sbi_scratch_options { + /** Disable prints during boot */ + SBI_SCRATCH_NO_BOOT_PRINTS = (1 << 0), +}; + /** Get pointer to sbi_scratch for current HART */ #define sbi_scratch_thishart_ptr() \ ((struct sbi_scratch *)csr_read(CSR_MSCRATCH)) -- cgit v1.2.3