From: Franck Bui-Huu <vagabon.xyz@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: post@pfrst.de, linux-mips <linux-mips@linux-mips.org>
Subject: [PATCH] __pa_page_offset(): fix physical offset for kernel linked in CKSEG0
Date: Mon, 19 Mar 2007 16:51:21 +0100 [thread overview]
Message-ID: <45FEB179.4070904@innova-card.com> (raw)
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
reply other threads:[~2007-03-19 15:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45FEB179.4070904@innova-card.com \
--to=vagabon.xyz@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=post@pfrst.de \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.