Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9ae6399f0178c49a6e9cb7562ecc2f7d10c9f195
Commit:     9ae6399f0178c49a6e9cb7562ecc2f7d10c9f195
Parent:     d8998737bd56e65d5e7326b515769c20dc01cb63
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 11 08:50:40 2007 +0100
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Fri Sep 28 19:27:20 2007 +0100

    [MIPS] Fix CONFIG_BUILD_ELF64 kernels with symbols in CKSEG0.
    
    The __pa() for those did assume that all symbols have XKPHYS values and
    the math fails for any other address range.
    
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 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 b92dd8c..e3301e5 100644
--- a/include/asm-mips/page.h
+++ b/include/asm-mips/page.h
@@ -142,7 +142,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)
+#ifdef CONFIG_64BIT
 #define __pa(x)                                                                
\
 ({                                                                     \
     unsigned long __x = (unsigned long)(x);                            \
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to