tlbflush.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * TLB flush support for Hexagon
  4. *
  5. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  6. */
  7. #ifndef _ASM_TLBFLUSH_H
  8. #define _ASM_TLBFLUSH_H
  9. #include <linux/mm.h>
  10. #include <asm/processor.h>
  11. /*
  12. * TLB flushing -- in "SMP", these routines get defined to be the
  13. * ones from smp.c, else they are some local flavors.
  14. */
  15. /*
  16. * These functions are commonly macros, but in the interests of
  17. * VM vs. native implementation and code size, we simply declare
  18. * the function prototypes here.
  19. */
  20. extern void tlb_flush_all(void);
  21. extern void flush_tlb_mm(struct mm_struct *mm);
  22. extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr);
  23. extern void flush_tlb_range(struct vm_area_struct *vma,
  24. unsigned long start, unsigned long end);
  25. extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
  26. extern void flush_tlb_one(unsigned long);
  27. /*
  28. * "This is called in munmap when we have freed up some page-table pages.
  29. * We don't need to do anything here..."
  30. *
  31. * The VM kernel doesn't walk page tables, and they are passed to the VMM
  32. * by logical address. There doesn't seem to be any possibility that they
  33. * could be referenced by the VM kernel based on a stale mapping, since
  34. * they would only be located by consulting the mm structure, and they
  35. * will have been purged from that structure by the munmap. Seems like
  36. * a noop on HVM as well.
  37. */
  38. #define flush_tlb_pgtables(mm, start, end)
  39. #endif