diff options
| -rw-r--r-- | arch/sh/mm/Makefile_32 | 2 | ||||
| -rw-r--r-- | arch/sh/mm/Makefile_64 | 2 | ||||
| -rw-r--r-- | arch/sh/mm/nommu.c (renamed from arch/sh/mm/tlb-nommu.c) | 27 | ||||
| -rw-r--r-- | arch/sh/mm/pg-nommu.c | 33 |
4 files changed, 26 insertions, 38 deletions
diff --git a/arch/sh/mm/Makefile_32 b/arch/sh/mm/Makefile_32 index affcc9a15cea..ff3b07bd772d 100644 --- a/arch/sh/mm/Makefile_32 +++ b/arch/sh/mm/Makefile_32 | |||
| @@ -14,7 +14,7 @@ endif | |||
| 14 | 14 | ||
| 15 | obj-y += $(cacheops-y) | 15 | obj-y += $(cacheops-y) |
| 16 | 16 | ||
| 17 | mmu-y := tlb-nommu.o pg-nommu.o | 17 | mmu-y := nommu.o |
| 18 | mmu-$(CONFIG_MMU) := fault_32.o kmap.o tlbflush_32.o ioremap_32.o | 18 | mmu-$(CONFIG_MMU) := fault_32.o kmap.o tlbflush_32.o ioremap_32.o |
| 19 | 19 | ||
| 20 | obj-y += $(mmu-y) | 20 | obj-y += $(mmu-y) |
diff --git a/arch/sh/mm/Makefile_64 b/arch/sh/mm/Makefile_64 index 66c39106d0a8..4d5ed245ef47 100644 --- a/arch/sh/mm/Makefile_64 +++ b/arch/sh/mm/Makefile_64 | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | obj-y := init.o consistent.o mmap.o | 5 | obj-y := init.o consistent.o mmap.o |
| 6 | 6 | ||
| 7 | mmu-y := tlb-nommu.o pg-nommu.o extable_32.o | 7 | mmu-y := nommu.o extable_32.o |
| 8 | mmu-$(CONFIG_MMU) := fault_64.o ioremap_64.o tlbflush_64.o tlb-sh5.o \ | 8 | mmu-$(CONFIG_MMU) := fault_64.o ioremap_64.o tlbflush_64.o tlb-sh5.o \ |
| 9 | extable_64.o | 9 | extable_64.o |
| 10 | 10 | ||
diff --git a/arch/sh/mm/tlb-nommu.c b/arch/sh/mm/nommu.c index 0710ebb99b9a..51b54037216f 100644 --- a/arch/sh/mm/tlb-nommu.c +++ b/arch/sh/mm/nommu.c | |||
| @@ -1,20 +1,41 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * arch/sh/mm/tlb-nommu.c | 2 | * arch/sh/mm/nommu.c |
| 3 | * | 3 | * |
| 4 | * TLB Operations for MMUless SH. | 4 | * Various helper routines and stubs for MMUless SH. |
| 5 | * | 5 | * |
| 6 | * Copyright (C) 2002 Paul Mundt | 6 | * Copyright (C) 2002 - 2009 Paul Mundt |
| 7 | * | 7 | * |
| 8 | * Released under the terms of the GNU GPL v2.0. | 8 | * Released under the terms of the GNU GPL v2.0. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
| 11 | #include <linux/init.h> | ||
| 12 | #include <linux/string.h> | ||
| 11 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
| 12 | #include <asm/pgtable.h> | 14 | #include <asm/pgtable.h> |
| 13 | #include <asm/tlbflush.h> | 15 | #include <asm/tlbflush.h> |
| 16 | #include <asm/page.h> | ||
| 17 | #include <asm/uaccess.h> | ||
| 14 | 18 | ||
| 15 | /* | 19 | /* |
| 16 | * Nothing too terribly exciting here .. | 20 | * Nothing too terribly exciting here .. |
| 17 | */ | 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 *to, __kernel_size_t n) | ||
| 34 | { | ||
| 35 | memset(to, 0, n); | ||
| 36 | return 0; | ||
| 37 | } | ||
| 38 | |||
| 18 | void local_flush_tlb_all(void) | 39 | void local_flush_tlb_all(void) |
| 19 | { | 40 | { |
| 20 | BUG(); | 41 | BUG(); |
diff --git a/arch/sh/mm/pg-nommu.c b/arch/sh/mm/pg-nommu.c deleted file mode 100644 index 7e33b486b7e9..000000000000 --- a/arch/sh/mm/pg-nommu.c +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * arch/sh/mm/pg-nommu.c | ||
| 3 | * | ||
| 4 | * copy_page()/__copy_user()/__clear_user() implementations for MMUless SH. | ||
| 5 | * | ||
| 6 | * Copyright (C) 2003 Paul Mundt | ||
| 7 | * | ||
| 8 | * This file is subject to the terms and conditions of the GNU General Public | ||
| 9 | * License. See the file "COPYING" in the main directory of this archive | ||
| 10 | * for more details. | ||
| 11 | */ | ||
| 12 | #include <linux/init.h> | ||
| 13 | #include <linux/kernel.h> | ||
| 14 | #include <linux/string.h> | ||
| 15 | #include <asm/page.h> | ||
| 16 | #include <asm/uaccess.h> | ||
| 17 | |||
| 18 | void copy_page(void *to, void *from) | ||
| 19 | { | ||
| 20 | memcpy(to, from, PAGE_SIZE); | ||
| 21 | } | ||
| 22 | |||
| 23 | __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n) | ||
| 24 | { | ||
| 25 | memcpy(to, from, n); | ||
| 26 | return 0; | ||
| 27 | } | ||
| 28 | |||
| 29 | __kernel_size_t __clear_user(void *to, __kernel_size_t n) | ||
| 30 | { | ||
| 31 | memset(to, 0, n); | ||
| 32 | return 0; | ||
| 33 | } | ||
