Skip to content

Commit

Permalink
arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chintan Pandya authored and Will Deacon committed Jul 6, 2018
1 parent f355152 commit 05f2d2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm64/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm,
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

0 comments on commit 05f2d2f

Please sign in to comment.