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
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14 #include <linux/string.h>
17 static void copy_page_nommu(void *to
, void *from
)
19 memcpy(to
, from
, PAGE_SIZE
);
22 static void clear_page_nommu(void *to
)
24 memset(to
, 0, PAGE_SIZE
);
27 static int __init
pg_nommu_init(void)
29 copy_page
= copy_page_nommu
;
30 clear_page
= clear_page_nommu
;
35 subsys_initcall(pg_nommu_init
);