]> git.karo-electronics.de Git - linux-beck.git/commitdiff
m68k: set ColdFire MMU page size
authorGreg Ungerer <gerg@uclinux.org>
Mon, 17 Oct 2011 07:26:11 +0000 (17:26 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Fri, 30 Dec 2011 00:20:32 +0000 (10:20 +1000)
We use the ColdFire V4e MMU page size of 8KiB. Define PAGE_SHIFT
appropriately.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
arch/m68k/include/asm/page.h

index ba6c91d5f3a9feab2ebeb18e60346f0a9877ab9a..98baa82a86158420ea6aa80167a0f1197994ce5f 100644 (file)
@@ -6,10 +6,10 @@
 #include <asm/page_offset.h>
 
 /* PAGE_SHIFT determines the page size */
-#ifndef CONFIG_SUN3
-#define PAGE_SHIFT     (12)
+#if defined(CONFIG_SUN3) || defined(CONFIG_COLDFIRE)
+#define PAGE_SHIFT     13
 #else
-#define PAGE_SHIFT     (13)
+#define PAGE_SHIFT     12
 #endif
 #define PAGE_SIZE      (_AC(1, UL) << PAGE_SHIFT)
 #define PAGE_MASK      (~(PAGE_SIZE-1))