arm64: add kc_offset_to_vaddr and kc_vaddr_to_offset macro
authoryalin wang <[email protected]>
Mon, 12 Oct 2015 06:52:59 +0000 (14:52 +0800)
committerCatalin Marinas <[email protected]>
Tue, 13 Oct 2015 14:15:24 +0000 (15:15 +0100)
commit03875ad52fdde1f110f663470a45d3dcc34b8fef
treeae3441386bd181149356f521614fe6e1d98e02a7
parent1b6d7f8742d5d46c478f10c9e57da18d049b116d
arm64: add kc_offset_to_vaddr and kc_vaddr_to_offset macro

This patch add kc_offset_to_vaddr() and kc_vaddr_to_offset(),
the default version doesn't work on arm64, because arm64 kernel address
is below the PAGE_OFFSET, like module address and vmemmap address are
all below PAGE_OFFSET address.

Signed-off-by: yalin wang <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/include/asm/pgtable.h