arm64: add function to install the idmap
authorMark Rutland <mark.rutland@arm.com>
Mon, 25 Jan 2016 11:45:00 +0000 (11:45 +0000)
committerAlex Shi <alex.shi@linaro.org>
Thu, 20 Oct 2016 08:23:49 +0000 (16:23 +0800)
commitb07984a249555dc0c3dca60d6a28d1832cf4a0f2
treefd9ccd5131661a4922271b5b9d040c5f081b00fc
parent39c5c6a146a72950ba6c04c6dc35aa6eb8830bb5
arm64: add function to install the idmap

In some cases (e.g. when making invasive changes to the kernel page
tables) we will need to execute code from the idmap.

Add a new helper which may be used to install the idmap, complementing
the existing cpu_uninstall_idmap.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Laura Abbott <labbott@fedoraproject.org>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 609116d202a8c5fd3fe393eb85373cbee906df68)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/mmu_context.h