aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/page.h
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2006-09-27 17:21:02 +0900
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 17:21:02 +0900
commite96636ccfa373a00a0ee0558e1971baa7856d8b5 (patch)
treec4f98b1c92f30f17c8c0d36419977789fe537aab /include/asm-sh/page.h
parentsh: Make PAGE_OFFSET configurable. (diff)
downloadlinux-dev-e96636ccfa373a00a0ee0558e1971baa7856d8b5.tar.xz
linux-dev-e96636ccfa373a00a0ee0558e1971baa7856d8b5.zip
sh: Various nommu fixes.
This fixes up some of the various outstanding nommu bugs on SH. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/page.h')
-rw-r--r--include/asm-sh/page.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h
index 1b3cfd165a66..e9135532d00c 100644
--- a/include/asm-sh/page.h
+++ b/include/asm-sh/page.h
@@ -38,8 +38,13 @@
extern void (*clear_page)(void *to);
extern void (*copy_page)(void *to, void *from);
+#ifdef CONFIG_MMU
extern void clear_page_slow(void *to);
extern void copy_page_slow(void *to, void *from);
+#else
+extern void clear_page_nommu(void *to);
+extern void copy_page_nommu(void *to, void *from);
+#endif
#if defined(CONFIG_MMU) && (defined(CONFIG_CPU_SH4) || \
defined(CONFIG_SH7705_CACHE_32KB))