linux-mips
[Top] [All Lists]

[PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKS

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKSEG0
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Mon, 19 Mar 2007 16:51:21 +0100
Cc: post@pfrst.de, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding:from; b=lVTZoqdq3Xx73urGBUMqOZlj/ta0dIL1EF/AticoFCkJdiVP8C8ifObXX69r1YcBFG4+2Fy9ixq9261VxVibSSy6hfS20K1620IxjpQuU2CvQe1YQg+3FiEOOJ0vV6XGCArrJ6NKzseAp3DZ4B51sDtkU9hrl40o9k6mM5m1COc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding:from; b=PszqflCUtO6xqWyH6g2HiBE7hNb3JStpN3DlxGB8zb6xR0gMdantyxTSw/HyawLhs+Fh2UchMv1AS5BYgSlwSvapppGqiSvQtCZKTkg6m6hG5yZavQ24KrL1Nq3em33qJnlJc40Vo+ME3CgZseHpKnY93BVXpOu9bMr37wy8MTI=
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: Franck <vagabon.xyz@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 1.5.0.4 (X11/20060614)
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


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKSEG0, Franck Bui-Huu <=