diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-18 15:12:20 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 23:15:53 +0530 |
commit | d79e678d746d3d4234477f08ce7d27d55ebe283a (patch) | |
tree | 9a8bd17a8b45fd99c8dbc02f783348cd90534933 /arch/arc/include/asm/tlb.h | |
parent | cc562d2eae93bc2768a6575d31c089719e8939e8 (diff) | |
download | op-kernel-dev-d79e678d746d3d4234477f08ce7d27d55ebe283a.zip op-kernel-dev-d79e678d746d3d4234477f08ce7d27d55ebe283a.tar.gz |
ARC: TLB flush Handling
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/tlb.h')
-rw-r--r-- | arch/arc/include/asm/tlb.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arc/include/asm/tlb.h b/arch/arc/include/asm/tlb.h index b571e12..3eb2ce0 100644 --- a/arch/arc/include/asm/tlb.h +++ b/arch/arc/include/asm/tlb.h @@ -21,6 +21,23 @@ #ifndef __ASSEMBLY__ +#define tlb_flush(tlb) local_flush_tlb_mm((tlb)->mm) + +/* + * This pair is called at time of munmap/exit to flush cache and TLB entries + * for mappings being torn down. + * 1) cache-flush part -implemented via tlb_start_vma( ) can be NOP (for now) + * as we don't support aliasing configs in our VIPT D$. + * 2) tlb-flush part - implemted via tlb_end_vma( ) can be NOP as well- + * albiet for difft reasons - its better handled by moving to new ASID + * + * Note, read http://lkml.org/lkml/2004/1/15/6 + */ +#define tlb_start_vma(tlb, vma) +#define tlb_end_vma(tlb, vma) + +#define __tlb_remove_tlb_entry(tlb, ptep, address) + #include <linux/pagemap.h> #include <asm-generic/tlb.h> |