summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_hart_protection.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbi/sbi_hart_protection.c')
-rw-r--r--lib/sbi/sbi_hart_protection.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sbi/sbi_hart_protection.c b/lib/sbi/sbi_hart_protection.c
index c4c149c8..ee4d4beb 100644
--- a/lib/sbi/sbi_hart_protection.c
+++ b/lib/sbi/sbi_hart_protection.c
@@ -196,22 +196,22 @@ int sbi_hart_protection_reconfigure(struct sbi_scratch *scratch,
return 0;
}
-int sbi_hart_protection_map_range(unsigned long base, unsigned long size)
+int sbi_hart_protection_temp_map_range(unsigned long base, unsigned long size)
{
struct sbi_hart_protection *hprot = __hart_memory_protection_best();
- if (!hprot || !hprot->map_range)
+ if (!hprot || !hprot->temp_map_range)
return 0;
- return hprot->map_range(sbi_scratch_thishart_ptr(), base, size);
+ return hprot->temp_map_range(sbi_scratch_thishart_ptr(), base, size);
}
-int sbi_hart_protection_unmap_range(unsigned long base, unsigned long size)
+int sbi_hart_protection_temp_unmap_range(unsigned long base, unsigned long size)
{
struct sbi_hart_protection *hprot = __hart_memory_protection_best();
- if (!hprot || !hprot->unmap_range)
+ if (!hprot || !hprot->temp_unmap_range)
return 0;
- return hprot->unmap_range(sbi_scratch_thishart_ptr(), base, size);
+ return hprot->temp_unmap_range(sbi_scratch_thishart_ptr(), base, size);
}