mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-08-18 01:21:49 +01:00
lib: sbi: Print list of all hart protection mechanisms at boot time
Instead of printing only the best hart memory protection name at boot time let's print a list of all hart projection mechanisms. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260727042504.1743250-6-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -50,11 +50,14 @@ struct sbi_hart_protection {
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the best hart memory protection mechanism
|
||||
* Get a string containing names of protection mechanisms
|
||||
*
|
||||
* @param out_str pointer to output string
|
||||
* @param out_str_size maximum size of output string
|
||||
*
|
||||
* @return pointer to best hart memory protection mechanism
|
||||
*/
|
||||
struct sbi_hart_protection *sbi_hart_memory_protection_best(void);
|
||||
void sbi_hart_protection_get_str(char *out_str, int out_str_size);
|
||||
|
||||
/**
|
||||
* Register a hart protection mechanism
|
||||
|
||||
Reference in New Issue
Block a user