WIP FPC-III support
[linux/fpc-iii.git] / arch / sh / mm / nommu.c
blob8b4504413c5f6b6672843dca5cf75c6c7593363b
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * arch/sh/mm/nommu.c
5 * Various helper routines and stubs for MMUless SH.
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 #include <asm/tlbflush.h>
14 #include <asm/page.h>
15 #include <linux/uaccess.h>
18 * Nothing too terribly exciting here ..
20 void copy_page(void *to, void *from)
22 memcpy(to, from, PAGE_SIZE);
25 __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
27 memcpy(to, from, n);
28 return 0;
31 __kernel_size_t __clear_user(void *to, __kernel_size_t n)
33 memset(to, 0, n);
34 return 0;
37 void local_flush_tlb_all(void)
39 BUG();
42 void local_flush_tlb_mm(struct mm_struct *mm)
44 BUG();
47 void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
48 unsigned long end)
50 BUG();
53 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
55 BUG();
58 void local_flush_tlb_one(unsigned long asid, unsigned long page)
60 BUG();
63 void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
65 BUG();
68 void __flush_tlb_global(void)
72 void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte)
76 void __init kmap_coherent_init(void)
80 void *kmap_coherent(struct page *page, unsigned long addr)
82 BUG();
83 return NULL;
86 void kunmap_coherent(void *kvaddr)
88 BUG();
91 void __init page_table_range_init(unsigned long start, unsigned long end,
92 pgd_t *pgd_base)
96 void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot)