From 98ee15ca3adcf7bc22695897cd63a3ce8c5c53ff Mon Sep 17 00:00:00 2001 From: Atish Patra <atish.patra@wdc.com> Date: Tue, 10 Sep 2019 03:40:38 -0700 Subject: lib: provide a platform specific tlb range flush threshold Currently, the tlb range flush threshold is fixed and set to 4k for all platforms. However, it should be platform specific as it completely depends upon how platform actually implements sfence instruction. Define a platform feature that allows every individual platform to set different values. If a platform doesn't define it, just use a page size as the threshold. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> --- platform/template/platform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'platform') diff --git a/platform/template/platform.c b/platform/template/platform.c index e123f3a..d36af48 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -224,5 +224,6 @@ 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 }; -- cgit v1.2.3