0317aca8d0c01e130a208e969a1bc80d385cc25c
2 * arch/ubicom32/include/asm/tlbflush.h
3 * TLB operations for Ubicom32 architecture.
5 * (C) Copyright 2009, Ubicom, Inc.
6 * Copyright (C) 2000 Lineo, David McCullough <davidm@uclinux.org>
7 * Copyright (C) 2000-2002, Greg Ungerer <gerg@snapgear.com>
9 * This file is part of the Ubicom32 Linux Kernel Port.
11 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
12 * it and/or modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, either version 2 of the
14 * License, or (at your option) any later version.
16 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
17 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
18 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
19 * the GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with the Ubicom32 Linux Kernel Port. If not,
23 * see <http://www.gnu.org/licenses/>.
25 * Ubicom32 implementation derived from (with many thanks):
30 #ifndef _ASM_UBICOM32_TLB_FLUSH_H
31 #define _ASM_UBICOM32_TLB_FLUSH_H
33 #include <asm/setup.h>
36 * flush all user-space atc entries.
38 static inline void __flush_tlb(void)
43 static inline void __flush_tlb_one(unsigned long addr
)
48 #define flush_tlb() __flush_tlb()
51 * flush all atc entries (both kernel and user-space entries).
53 static inline void flush_tlb_all(void)
58 static inline void flush_tlb_mm(struct mm_struct
*mm
)
63 static inline void flush_tlb_page(struct vm_area_struct
*vma
, unsigned long addr
)
68 static inline void flush_tlb_range(struct mm_struct
*mm
,
69 unsigned long start
, unsigned long end
)
74 static inline void flush_tlb_kernel_page(unsigned long addr
)
79 #endif /* _ASM_UBICOM32_TLB_FLUSH_H */