arm64: tlbflush: avoid writing RES0 bits
authorPhilip Elcan <pelcan@codeaurora.org>
Wed, 28 Mar 2018 01:55:32 +0000 (21:55 -0400)
committerWill Deacon <will.deacon@arm.com>
Wed, 28 Mar 2018 14:20:17 +0000 (15:20 +0100)
commit7f170499f734c417290518aa50cac11953bf8161
tree57430fc906fc301e499c2beadb8df75b1c6f50be
parent2a58fca9a7b4a3953c3e983ef80e36df85293a7c
arm64: tlbflush: avoid writing RES0 bits

Several of the bits of the TLBI register operand are RES0 per the ARM
ARM, so TLBI operations should avoid writing non-zero values to these
bits.

This patch adds a macro __TLBI_VADDR(addr, asid) that creates the
operand register in the correct format and honors the RES0 bits.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Philip Elcan <pelcan@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/tlbflush.h