Commit 9ae6399f authored by Ralf Baechle's avatar Ralf Baechle

[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: default avatarRalf Baechle <ralf@linux-mips.org>
parent d8998737
...@@ -142,7 +142,7 @@ typedef struct { unsigned long pgprot; } pgprot_t; ...@@ -142,7 +142,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
/* /*
* __pa()/__va() should be used only during mem init. * __pa()/__va() should be used only during mem init.
*/ */
#if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) #ifdef CONFIG_64BIT
#define __pa(x) \ #define __pa(x) \
({ \ ({ \
unsigned long __x = (unsigned long)(x); \ unsigned long __x = (unsigned long)(x); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment