Avoid beyond bounds copy while caching ACL
[zen-stable.git] / arch / hexagon / include / asm / tlbflush.h
blobb89a90251225aa74a9daba05f21b6827fd1901ee
1 /*
2 * TLB flush support for Hexagon
4 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA.
21 #ifndef _ASM_TLBFLUSH_H
22 #define _ASM_TLBFLUSH_H
24 #include <linux/mm.h>
25 #include <asm/processor.h>
28 * TLB flushing -- in "SMP", these routines get defined to be the
29 * ones from smp.c, else they are some local flavors.
33 * These functions are commonly macros, but in the interests of
34 * VM vs. native implementation and code size, we simply declare
35 * the function prototypes here.
37 extern void tlb_flush_all(void);
38 extern void flush_tlb_mm(struct mm_struct *mm);
39 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr);
40 extern void flush_tlb_range(struct vm_area_struct *vma,
41 unsigned long start, unsigned long end);
42 extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
43 extern void flush_tlb_one(unsigned long);
46 * "This is called in munmap when we have freed up some page-table pages.
47 * We don't need to do anything here..."
49 * The VM kernel doesn't walk page tables, and they are passed to the VMM
50 * by logical address. There doesn't seem to be any possibility that they
51 * could be referenced by the VM kernel based on a stale mapping, since
52 * they would only be located by consulting the mm structure, and they
53 * will have been purged from that structure by the munmap. Seems like
54 * a noop on HVM as well.
56 #define flush_tlb_pgtables(mm, start, end)
58 #endif