include/asm-x86/pgtable-2level.h: checkpatch cleanups - formatting only
[linux-2.6/mini2440.git] / arch / sh / mm / pg-nommu.c
blob677dd57f0877dfa0cb0ca6de0025558b2df176de
1 /*
2 * arch/sh/mm/pg-nommu.c
4 * clear_page()/copy_page() implementation for MMUless SH.
6 * Copyright (C) 2003 Paul Mundt
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.
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14 #include <linux/string.h>
15 #include <asm/page.h>
17 void copy_page(void *to, void *from)
19 memcpy(to, from, PAGE_SIZE);
22 void clear_page(void *to)
24 memset(to, 0, PAGE_SIZE);
27 __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
29 memcpy(to, from, n);
30 return 0;
33 __kernel_size_t __clear_user(void *to, __kernel_size_t n)
35 memset(to, 0, n);
36 return 0;