* [PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKSEG0
@ 2007-03-19 15:51 Franck Bui-Huu
0 siblings, 0 replies; only message in thread
From: Franck Bui-Huu @ 2007-03-19 15:51 UTC (permalink / raw)
To: Ralf Baechle; +Cc: post, linux-mips
From: peter fuerst <post@pfrst.de>
This patch fixes commit 6f284a2ce7b8bc49cb8455b1763357897a899abb
for 64 bits kernel linked in CKSEG0.
Signed-off-by: peter fuerst <post@pfrst.de>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-19 15:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 15:51 [PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKSEG0 Franck Bui-Huu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox