CRIS: Pagetable for ARTPEC-3
authorJesper Nilsson <jesper.nilsson@axis.com>
Tue, 3 Aug 2010 16:58:29 +0000 (18:58 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Wed, 4 Aug 2010 11:02:35 +0000 (13:02 +0200)
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/arch-v32/arch/pgtable.h

index 08cb7ff7e4e73be80597716f6bf6324911094e3c..c1051a8da33d2362cd190bb7a26d34121f7ce310 100644 (file)
@@ -2,8 +2,16 @@
 #define _ASM_CRIS_ARCH_PGTABLE_H
 
 /* Define the kernels virtual memory area. */
+
+/* See head.S for differences between ARTPEC-3 and ETRAX FS. */
+#ifdef CONFIG_CRIS_MACH_ARTPEC3
+#define VMALLOC_START          KSEG_E
+#define VMALLOC_END            KSEG_F
+#else
 #define VMALLOC_START          KSEG_D
 #define VMALLOC_END            KSEG_E
+#endif
+
 #define VMALLOC_VMADDR(x)      ((unsigned long)(x))
 
 #endif /* _ASM_CRIS_ARCH_PGTABLE_H */