diff options
author | Will Deacon <will.deacon@arm.com> | 2017-08-10 14:19:09 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-12-11 14:40:25 +0100 |
commit | 7655abb953860485940d4de74fb45a8192149bb6 (patch) | |
tree | 7a4e23ca3f04429b70898608c8db7a9b929fbfec /arch/arm64/include/asm/proc-fns.h | |
parent | arm64: mm: Temporarily disable ARM64_SW_TTBR0_PAN (diff) | |
download | linux-7655abb953860485940d4de74fb45a8192149bb6.tar.xz linux-7655abb953860485940d4de74fb45a8192149bb6.zip |
arm64: mm: Move ASID from TTBR0 to TTBR1
In preparation for mapping kernelspace and userspace with different
ASIDs, move the ASID to TTBR1 and update switch_mm to context-switch
TTBR0 via an invalid mapping (the zero page).
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/proc-fns.h')
-rw-r--r-- | arch/arm64/include/asm/proc-fns.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm64/include/asm/proc-fns.h b/arch/arm64/include/asm/proc-fns.h index 14ad6e4e87d1..16cef2e8449e 100644 --- a/arch/arm64/include/asm/proc-fns.h +++ b/arch/arm64/include/asm/proc-fns.h @@ -35,12 +35,6 @@ extern u64 cpu_do_resume(phys_addr_t ptr, u64 idmap_ttbr); #include <asm/memory.h> -#define cpu_switch_mm(pgd,mm) \ -do { \ - BUG_ON(pgd == swapper_pg_dir); \ - cpu_do_switch_mm(virt_to_phys(pgd),mm); \ -} while (0) - #endif /* __ASSEMBLY__ */ #endif /* __KERNEL__ */ #endif /* __ASM_PROCFNS_H */ |