summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/proc-fns.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2017-08-10 15:19:09 +0300
committerWill Deacon <will.deacon@arm.com>2017-12-11 16:40:25 +0300
commit7655abb953860485940d4de74fb45a8192149bb6 (patch)
tree7a4e23ca3f04429b70898608c8db7a9b929fbfec /arch/arm64/include/asm/proc-fns.h
parent376133b7edc20f237a42e4c72415cc9e8c0a9704 (diff)
downloadlinux-7655abb953860485940d4de74fb45a8192149bb6.tar.xz
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.h6
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 */