diff options
author | Will Deacon <will.deacon@arm.com> | 2017-08-10 15:10:28 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-12-11 14:40:38 +0100 |
commit | 0c8ea531b7740754cf374ca8b7510655f569c5e3 (patch) | |
tree | 351a23183a83c558e17184e736bd877c71a17bbe /arch/arm64/include/asm/mmu.h | |
parent | arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN (diff) | |
download | linux-0c8ea531b7740754cf374ca8b7510655f569c5e3.tar.xz linux-0c8ea531b7740754cf374ca8b7510655f569c5e3.zip |
arm64: mm: Allocate ASIDs in pairs
In preparation for separate kernel/user ASIDs, allocate them in pairs
for each mm_struct. The bottom bit distinguishes the two: if it is set,
then the ASID will map only userspace.
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/mmu.h')
-rw-r--r-- | arch/arm64/include/asm/mmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h index 0d34bf0a89c7..01bfb184f2a8 100644 --- a/arch/arm64/include/asm/mmu.h +++ b/arch/arm64/include/asm/mmu.h @@ -17,6 +17,7 @@ #define __ASM_MMU_H #define MMCF_AARCH32 0x1 /* mm context flag for AArch32 executables */ +#define USER_ASID_FLAG (UL(1) << 48) typedef struct { atomic64_t id; |