mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 06:06:41 +07:00
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>
This commit is contained in:
parent
6ebda44f36
commit
27b3db2031
@ -190,7 +190,9 @@ typedef struct { unsigned long pgprot; } pgprot_t;
|
|||||||
* https://patchwork.linux-mips.org/patch/1541/
|
* https://patchwork.linux-mips.org/patch/1541/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __pa_symbol
|
||||||
#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0))
|
#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
|
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user