]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/asm-x86_64/page.h
[PATCH] reorganize x86-64 NUMA and DISCONTIGMEM config options
[linux-2.6.git] / include / asm-x86_64 / page.h
index 9ce338c3a71eb8fa5a2db09b5ce9b7c109f0654e..60130f4ca986b7855119ec0486c45a94e881191f 100644 (file)
@@ -119,7 +119,9 @@ extern __inline__ int get_order(unsigned long size)
          __pa(v); })
 
 #define __va(x)                        ((void *)((unsigned long)(x)+PAGE_OFFSET))
-#ifndef CONFIG_DISCONTIGMEM
+#define __boot_va(x)           __va(x)
+#define __boot_pa(x)           __pa(x)
+#ifdef CONFIG_FLATMEM
 #define pfn_to_page(pfn)       (mem_map + (pfn))
 #define page_to_pfn(page)      ((unsigned long)((page) - mem_map))
 #define pfn_valid(pfn)         ((pfn) < max_mapnr)