Commit ebd4acc0 authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Dennis Zhou
Browse files

riscv: Fix wrong size passed to local_flush_tlb_range_asid()



local_flush_tlb_range_asid() takes the size as argument, not the end of
the range to flush, so fix this by computing the size from the end and
the start of the range.

Fixes: 7a92fc8b ("mm: Introduce flush_cache_vmap_early()")
Signed-off-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent 41bccc98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ static inline void local_flush_tlb_range_asid(unsigned long start,

void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
{
	local_flush_tlb_range_asid(start, end, PAGE_SIZE, FLUSH_TLB_NO_ASID);
	local_flush_tlb_range_asid(start, end - start, PAGE_SIZE, FLUSH_TLB_NO_ASID);
}

static void __ipi_flush_tlb_all(void *info)