arm64: Introduce VA_BITS and translation level options
[linux-2.6-block.git] / arch / arm64 / include / asm / memory.h
index 993bce527b8552d379c62b6082703b1438e80436..45ad6cf678ddc6f99e4c4a02c0843883cad21de3 100644 (file)
  * The module space lives between the addresses given by TASK_SIZE
  * and PAGE_OFFSET - it must be within 128MB of the kernel text.
  */
-#ifdef CONFIG_ARM64_64K_PAGES
-#define VA_BITS                        (42)
-#else
-#define VA_BITS                        (39)
-#endif
+#define VA_BITS                        (CONFIG_ARM64_VA_BITS)
 #define PAGE_OFFSET            (UL(0xffffffffffffffff) << (VA_BITS - 1))
 #define MODULES_END            (PAGE_OFFSET)
 #define MODULES_VADDR          (MODULES_END - SZ_64M)