projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e35106
)
[MIPS] Fix CONFIG_BUILD_ELF64 kernels with symbols in CKSEG0.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 11 Sep 2007 07:50:40 +0000
(08:50 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 27 Sep 2007 22:19:16 +0000
(23:19 +0100)
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>
include/asm-mips/page.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-mips/page.h
b/include/asm-mips/page.h
index b92dd8c760da5d8a600f6abb33bd62b9bc6c1146..e3301e54d559c9586bf47c31b0486af12d9e2ab6 100644
(file)
--- 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)
+#if
def CONFIG_64BIT
#define __pa(x) \
({ \
unsigned long __x = (unsigned long)(x); \