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:
Anup Patel
2026-08-02 15:17:12 +05:30
committed by Anup Patel
parent 2636a9c2a8
commit 337c23dd66
3 changed files with 38 additions and 9 deletions
+5 -2
View File
@@ -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