~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/openrisc/include/asm/tlbflush.h

Version: ~ [ linux-5.8-rc3 ] ~ [ linux-5.7.5 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.48 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.129 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.185 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.228 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.228 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * OpenRISC Linux
  3  *
  4  * Linux architectural port borrowing liberally from similar works of
  5  * others.  All original copyrights apply as per the original source
  6  * declaration.
  7  *
  8  * OpenRISC implementation:
  9  * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
 10  * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
 11  * et al.
 12  *
 13  * This program is free software; you can redistribute it and/or modify
 14  * it under the terms of the GNU General Public License as published by
 15  * the Free Software Foundation; either version 2 of the License, or
 16  * (at your option) any later version.
 17  */
 18 
 19 #ifndef __ASM_OPENRISC_TLBFLUSH_H
 20 #define __ASM_OPENRISC_TLBFLUSH_H
 21 
 22 #include <linux/mm.h>
 23 #include <asm/processor.h>
 24 #include <asm/pgtable.h>
 25 #include <asm/pgalloc.h>
 26 #include <asm/current.h>
 27 #include <linux/sched.h>
 28 
 29 /*
 30  *  - flush_tlb() flushes the current mm struct TLBs
 31  *  - flush_tlb_all() flushes all processes TLBs
 32  *  - flush_tlb_mm(mm) flushes the specified mm context TLB's
 33  *  - flush_tlb_page(vma, vmaddr) flushes one page
 34  *  - flush_tlb_range(mm, start, end) flushes a range of pages
 35  */
 36 
 37 void flush_tlb_all(void);
 38 void flush_tlb_mm(struct mm_struct *mm);
 39 void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr);
 40 void flush_tlb_range(struct vm_area_struct *vma,
 41                      unsigned long start,
 42                      unsigned long end);
 43 
 44 static inline void flush_tlb(void)
 45 {
 46         flush_tlb_mm(current->mm);
 47 }
 48 
 49 static inline void flush_tlb_kernel_range(unsigned long start,
 50                                           unsigned long end)
 51 {
 52         flush_tlb_range(NULL, start, end);
 53 }
 54 
 55 #endif /* __ASM_OPENRISC_TLBFLUSH_H */
 56 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp