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

TOMOYO Linux Cross Reference
Linux/include/asm-v850/cacheflush.h

Version: ~ [ linux-5.15-rc5 ] ~ [ linux-5.14.11 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.72 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.152 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.210 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.250 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.286 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.288 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ 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  * include/asm-v850/cacheflush.h
  3  *
  4  *  Copyright (C) 2001,02,03  NEC Electronics Corporation
  5  *  Copyright (C) 2001,02,03  Miles Bader <miles@gnu.org>
  6  *
  7  * This file is subject to the terms and conditions of the GNU General
  8  * Public License.  See the file COPYING in the main directory of this
  9  * archive for more details.
 10  *
 11  * Written by Miles Bader <miles@gnu.org>
 12  */
 13 
 14 #ifndef __V850_CACHEFLUSH_H__
 15 #define __V850_CACHEFLUSH_H__
 16 
 17 /* Somebody depends on this; sigh...  */
 18 #include <linux/mm.h>
 19 
 20 #include <asm/machdep.h>
 21 
 22 
 23 /* The following are all used by the kernel in ways that only affect
 24    systems with MMUs, so we don't need them.  */
 25 #define flush_cache_all()                       ((void)0)
 26 #define flush_cache_mm(mm)                      ((void)0)
 27 #define flush_cache_range(vma, start, end)      ((void)0)
 28 #define flush_cache_page(vma, vmaddr)           ((void)0)
 29 #define flush_dcache_page(page)                 ((void)0)
 30 #define flush_cache_vmap(start, end)            ((void)0)
 31 #define flush_cache_vunmap(start, end)          ((void)0)
 32 
 33 #ifdef CONFIG_NO_CACHE
 34 
 35 /* Some systems have no cache at all, in which case we don't need these
 36    either.  */
 37 #define flush_icache()                          ((void)0)
 38 #define flush_icache_range(start, end)          ((void)0)
 39 #define flush_icache_page(vma,pg)               ((void)0)
 40 #define flush_icache_user_range(vma,pg,adr,len) ((void)0)
 41 #define flush_cache_sigtramp(vaddr)             ((void)0)
 42 
 43 #else /* !CONFIG_NO_CACHE */
 44 
 45 struct page;
 46 struct mm_struct;
 47 struct vm_area_struct;
 48 
 49 /* Otherwise, somebody had better define them.  */
 50 extern void flush_icache (void);
 51 extern void flush_icache_range (unsigned long start, unsigned long end);
 52 extern void flush_icache_page (struct vm_area_struct *vma, struct page *page);
 53 extern void flush_icache_user_range (struct vm_area_struct *vma,
 54                                      struct page *page,
 55                                      unsigned long adr, int len);
 56 extern void flush_cache_sigtramp (unsigned long addr);
 57 
 58 #endif /* CONFIG_NO_CACHE */
 59 
 60 #define copy_to_user_page(vma, page, vaddr, dst, src, len) \
 61 do { memcpy(dst, src, len); \
 62      flush_icache_user_range(vma, page, vaddr, len); \
 63 } while (0)
 64 #define copy_from_user_page(vma, page, vaddr, dst, src, len) \
 65         memcpy(dst, src, len)
 66 
 67 #endif /* __V850_CACHEFLUSH_H__ */
 68 

~ [ 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