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

TOMOYO Linux Cross Reference
Linux/arch/sh/mm/nommu.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  * arch/sh/mm/nommu.c
  4  *
  5  * Various helper routines and stubs for MMUless SH.
  6  *
  7  * Copyright (C) 2002 - 2009 Paul Mundt
  8  */
  9 #include <linux/kernel.h>
 10 #include <linux/init.h>
 11 #include <linux/string.h>
 12 #include <linux/mm.h>
 13 
 14 #include <asm/cacheflush.h>
 15 #include <asm/tlbflush.h>
 16 #include <asm/page.h>
 17 #include <linux/uaccess.h>
 18 
 19 /*
 20  * Nothing too terribly exciting here ..
 21  */
 22 void copy_page(void *to, void *from)
 23 {
 24         memcpy(to, from, PAGE_SIZE);
 25 }
 26 
 27 __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
 28 {
 29         memcpy(to, from, n);
 30         return 0;
 31 }
 32 
 33 __kernel_size_t __clear_user(void __user *to, __kernel_size_t n)
 34 {
 35         memset((__force void *)to, 0, n);
 36         return 0;
 37 }
 38 
 39 void local_flush_tlb_all(void)
 40 {
 41         BUG();
 42 }
 43 
 44 void local_flush_tlb_mm(struct mm_struct *mm)
 45 {
 46         BUG();
 47 }
 48 
 49 void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
 50                             unsigned long end)
 51 {
 52         BUG();
 53 }
 54 
 55 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
 56 {
 57         BUG();
 58 }
 59 
 60 void local_flush_tlb_one(unsigned long asid, unsigned long page)
 61 {
 62         BUG();
 63 }
 64 
 65 void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
 66 {
 67         BUG();
 68 }
 69 
 70 void __flush_tlb_global(void)
 71 {
 72 }
 73 
 74 void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte)
 75 {
 76 }
 77 
 78 void __init kmap_coherent_init(void)
 79 {
 80 }
 81 
 82 void *kmap_coherent(struct page *page, unsigned long addr)
 83 {
 84         BUG();
 85         return NULL;
 86 }
 87 
 88 void kunmap_coherent(void *kvaddr)
 89 {
 90         BUG();
 91 }
 92 
 93 void __init page_table_range_init(unsigned long start, unsigned long end,
 94                                   pgd_t *pgd_base)
 95 {
 96 }
 97 
 98 void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
 99 {
100 }
101 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php