]> rtime.felk.cvut.cz Git - mcf548x/linux.git/blobdiff - arch/m68k/include/asm/pgtable_mm.h
Current (FEC from 2.6.31 port, no CAN, no I2C, no PCI)
[mcf548x/linux.git] / arch / m68k / include / asm / pgtable_mm.h
index 87174c904d2b2e8eb5adc83a4fc056ac8790a9cc..c0c51463303c3db3825d79fcb3e596b859fc0f70 100644 (file)
 #ifdef CONFIG_SUN3
 #define KMAP_START     0x0DC00000
 #define KMAP_END       0x0E000000
+#elif CONFIG_COLDFIRE
+#define KMAP_START        (VMALLOC_END + 1)
+#define KMAP_END       0xe0000000
 #else
 #define        KMAP_START      0xd0000000
 #define        KMAP_END        0xf0000000
 #endif
 
-#ifndef CONFIG_SUN3
+#if !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
 /* Just any arbitrary offset to the start of the vmalloc VM area: the
  * current 8MB value just means that there will be a 8MB "hole" after the
  * physical memory until the kernel virtual memory starts.  That means that
 #define VMALLOC_OFFSET (8*1024*1024)
 #define VMALLOC_START (((unsigned long) high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
 #define VMALLOC_END KMAP_START
-#else
+#elif defined(CONFIG_SUN3)
 extern unsigned long m68k_vmalloc_end;
 #define VMALLOC_START 0x0f800000
 #define VMALLOC_END m68k_vmalloc_end
-#endif /* CONFIG_SUN3 */
+#else
+#define        VMALLOC_START  0xC0000000
+#define VMALLOC_END       0xCFFFFFFF
+#endif /* CONFIG_COLDFIRE */
 
 /* zero page used for uninitialized stuff */
 extern void *empty_zero_page;
@@ -130,6 +136,8 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
 
 #ifdef CONFIG_SUN3
 #include <asm/sun3_pgtable.h>
+#elif CONFIG_COLDFIRE
+#include <asm/mcf_pgtable.h>
 #else
 #include <asm/motorola_pgtable.h>
 #endif
@@ -138,11 +146,14 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
 /*
  * Macro to mark a page protection value as "uncacheable".
  */
-#ifdef SUN3_PAGE_NOCACHE
+#ifdef CONFIG_COLDFIRE
+# define define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE))
+#elif defined(SUN3_PAGE_NOCACHE)
 # define __SUN3_PAGE_NOCACHE   SUN3_PAGE_NOCACHE
 #else
 # define __SUN3_PAGE_NOCACHE   0
 #endif
+
 #define pgprot_noncached(prot)                                                 \
        (MMU_IS_SUN3                                                            \
         ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE))                   \