diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2006-09-27 17:21:02 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 17:21:02 +0900 |
commit | e96636ccfa373a00a0ee0558e1971baa7856d8b5 (patch) | |
tree | c4f98b1c92f30f17c8c0d36419977789fe537aab /arch/sh/mm/init.c | |
parent | e7f93a355c7e32c26eab8910cf53b7506bb046c5 (diff) | |
download | op-kernel-dev-e96636ccfa373a00a0ee0558e1971baa7856d8b5.zip op-kernel-dev-e96636ccfa373a00a0ee0558e1971baa7856d8b5.tar.gz |
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 'arch/sh/mm/init.c')
-rw-r--r-- | arch/sh/mm/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index d1a979e..2c6dc3d 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -248,8 +248,13 @@ void __init mem_init(void) * Setup wrappers for copy/clear_page(), these will get overridden * later in the boot process if a better method is available. */ +#ifdef CONFIG_MMU copy_page = copy_page_slow; clear_page = clear_page_slow; +#else + copy_page = copy_page_nommu; + clear_page = clear_page_nommu; +#endif /* this will put all low memory onto the freelists */ totalram_pages += free_all_bootmem_node(NODE_DATA(0)); |