diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2025-12-09 19:22:34 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2025-12-16 20:16:47 +0530 |
| commit | 42139bb9b7dc10dcf5432cc34eb1bf2e233ef359 (patch) | |
| tree | 8987a68a191244a5ee4c0bb257dfb8881176da11 /include | |
| parent | b6da690ffbe68f28074fd077fdeafcad01e8c2ab (diff) | |
| download | opensbi-42139bb9b7dc10dcf5432cc34eb1bf2e233ef359.zip opensbi-42139bb9b7dc10dcf5432cc34eb1bf2e233ef359.tar.gz opensbi-42139bb9b7dc10dcf5432cc34eb1bf2e233ef359.tar.bz2 | |
lib: sbi: Replace sbi_hart_pmp_xyz() and sbi_hart_map/unmap_addr()
The sbi_hart_pmp_xyz() and sbi_hart_map/unmap_addr() functions can
now be replaced by various sbi_hart_protection_xyz() functions.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20251209135235.423391-5-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hart.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index d313527..bbd8026 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -117,8 +117,8 @@ enum sbi_hart_csrs { * When shared memory access is required, the physical address * should be programmed into the first PMP entry with R/W * permissions to the M-mode. Once the work is done, it should be - * unmapped. sbi_hart_map_saddr/sbi_hart_unmap_saddr function - * pair should be used to map/unmap the shared memory. + * unmapped. sbi_hart_protection_map_range/sbi_hart_protection_unmap_range + * function pair should be used to map/unmap the shared memory. */ #define SBI_SMEPMP_RESV_ENTRY 0 @@ -149,10 +149,6 @@ unsigned int sbi_hart_pmp_log2gran(struct sbi_scratch *scratch); unsigned int sbi_hart_pmp_addrbits(struct sbi_scratch *scratch); unsigned int sbi_hart_mhpm_bits(struct sbi_scratch *scratch); bool sbi_hart_smepmp_is_fw_region(unsigned int pmp_idx); -int sbi_hart_pmp_configure(struct sbi_scratch *scratch); -void sbi_hart_pmp_unconfigure(struct sbi_scratch *scratch); -int sbi_hart_map_saddr(unsigned long base, unsigned long size); -int sbi_hart_unmap_saddr(void); int sbi_hart_priv_version(struct sbi_scratch *scratch); void sbi_hart_get_priv_version_str(struct sbi_scratch *scratch, char *version_str, int nvstr); |
