summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2020-02-05 02:09:14 +0300
committerAnup Patel <anup@brainfault.org>2020-02-05 08:07:11 +0300
commitd79173b4b7519b537cf64c984d27daa26aad23c0 (patch)
tree089a36255303e4a6254a61c8fc9cf3812549e2fa /platform/template
parentac1c229b6124baf66b76982b2c82e4ca7ce9e2d5 (diff)
downloadopensbi-d79173b4b7519b537cf64c984d27daa26aad23c0.tar.xz
platform: Add an platform ops to return platform specific tlb flush limit
If a platform requires to perform a tlb full flush, they should set the tlb_range_flush_limit value to zero. However, corresponding platform API ignore the value and continue to return the default value. Add a platform ops to retrieve platform specific tlb range flush limit. The platform variable becomes redundant in presence of the platform ops. Take this opportunity to remove the variable as well. The default is still set to smallest page size in RISC-V (4KB), as there is no way to figure out a best value for all platforms. Individual platform should set it to the optimal value for their platform. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/template')
-rw-r--r--platform/template/platform.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index 1646c8c..f959a11 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -224,6 +224,5 @@ const struct sbi_platform platform = {
.hart_count = 1,
.hart_stack_size = 4096,
.disabled_hart_mask = 0,
- .tlb_range_flush_limit = 0,
.platform_ops_addr = (unsigned long)&platform_ops
};