mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
[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 <ralf@linux-mips.org>
This commit is contained in:
parent
6e351064b1
commit
7d809ba3f9
1 changed files with 1 additions and 1 deletions
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue