projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ebda44
)
MIPS: asm: page: Allow __pa_symbol overrides
author
Leonid Yegoshin
<Leonid.Yegoshin@imgtec.com>
Thu, 9 Jan 2014 13:06:34 +0000
(13:06 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:18 +0000
(23:09 +0100)
This will allow platforms to use an alternative way to get
the physical address of a symbol.
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/page.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/include/asm/page.h
b/arch/mips/include/asm/page.h
index 5e08bcc74897ab35c377c2d3b4cca9e7a9829824..5699ec3a71af3b42c6afb98b33a87ceceb58c175 100644
(file)
--- a/
arch/mips/include/asm/page.h
+++ b/
arch/mips/include/asm/page.h
@@
-190,7
+190,9
@@
typedef struct { unsigned long pgprot; } pgprot_t;
* https://patchwork.linux-mips.org/patch/1541/
*/
+#ifndef __pa_symbol
#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0))
+#endif
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)