diff options
| author | Anup Patel <anup.patel@oss.qualcomm.com> | 2026-07-27 09:55:04 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-08-02 15:17:12 +0530 |
| commit | 337c23dd66b821ac04a0f7bea313e7e7b30ecc49 (patch) | |
| tree | e4a839a849d9a650ef0d2393867981d04d8e4c5a /include | |
| parent | 2636a9c2a827e07e29777bffd29ac05254f0bfeb (diff) | |
| download | opensbi-337c23dd66b821ac04a0f7bea313e7e7b30ecc49.tar.gz opensbi-337c23dd66b821ac04a0f7bea313e7e7b30ecc49.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hart_protection.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sbi/sbi_hart_protection.h b/include/sbi/sbi_hart_protection.h index de5f2f89..cafe6ee7 100644 --- a/include/sbi/sbi_hart_protection.h +++ b/include/sbi/sbi_hart_protection.h @@ -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 |
