arm64: mm: Introduce TTBR_ASID_MASK for getting at the ASID in the TTBR
authorWill Deacon <will.deacon@arm.com>
Fri, 1 Dec 2017 17:33:48 +0000 (17:33 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 11 Dec 2017 13:41:17 +0000 (13:41 +0000)
commitb519538dfefc2f8478a1bcb458459c861d431784
tree67c2118ec03d3ba0464620ecc5f5f6117b87e6f8
parent7a4a0c1555b824e0d3dd72942481b1190abea604
arm64: mm: Introduce TTBR_ASID_MASK for getting at the ASID in the TTBR

There are now a handful of open-coded masks to extract the ASID from a
TTBR value, so introduce a TTBR_ASID_MASK and use that instead.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
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>
arch/arm64/include/asm/asm-uaccess.h
arch/arm64/include/asm/mmu.h
arch/arm64/include/asm/uaccess.h
arch/arm64/kernel/entry.S