diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-01-09 08:06:34 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:18 -0400 |
commit | 27b3db2031d3c293fd19ff99a6bd0752384db56f (patch) | |
tree | 184f3a3c7e77fed91f6a3574801a2391c2d0a454 /arch/mips/include | |
parent | 6ebda44f366478d1eea180d93154e7d97b591f50 (diff) |
MIPS: asm: page: Allow __pa_symbol overrides
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>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/page.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 5e08bcc74897..5699ec3a71af 100644 --- 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; | |||
190 | * https://patchwork.linux-mips.org/patch/1541/ | 190 | * https://patchwork.linux-mips.org/patch/1541/ |
191 | */ | 191 | */ |
192 | 192 | ||
193 | #ifndef __pa_symbol | ||
193 | #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) | 194 | #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) |
195 | #endif | ||
194 | 196 | ||
195 | #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) | 197 | #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) |
196 | 198 | ||