mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 15:54:39 +08:00
arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable
Add an interface to invalidate intermediate page tables from TLB for kernel. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Chintan Pandya <cpandya@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
parent
f355152041
commit
05f2d2f83b
@ -218,6 +218,13 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm,
|
|||||||
dsb(ish);
|
dsb(ish);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void __flush_tlb_kernel_pgtable(unsigned long kaddr)
|
||||||
|
{
|
||||||
|
unsigned long addr = __TLBI_VADDR(kaddr, 0);
|
||||||
|
|
||||||
|
__tlbi(vaae1is, addr);
|
||||||
|
dsb(ish);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user