From: peter fuerst <post@xxxxxxxx> This patch fixes commit 6f284a2ce7b8bc49cb8455b1763357897a899abb for 64 bits kernel linked in CKSEG0. Signed-off-by: peter fuerst <post@xxxxxxxx> Signed-off-by: Franck Bui-Huu <fbuihuu@xxxxxxxxx> --- include/asm-mips/page.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h index d3fbd83..76cb88c 100644 --- a/include/asm-mips/page.h +++ b/include/asm-mips/page.h @@ -150,7 +150,7 @@ typedef struct { unsigned long pgprot; } pgprot_t; * __pa()/__va() should be used only during mem init. */ #if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) -#define __pa_page_offset(x) ((unsigned long)(x) < CKSEG0 ? PAGE_OFFSET : CKSEG0) +#define __pa_page_offset(x) ((unsigned long)(x) < CKSEG0 ? PAGE_OFFSET : CKSEG0 + PHYS_OFFSET) #else #define __pa_page_offset(x) PAGE_OFFSET #endif -- 1.4.4.3.ge6d4