arm64: Add system register encoding for PSTATE.PAN
authorMarc Zyngier <maz@kernel.org>
Mon, 15 Jul 2024 12:09:29 +0000 (13:09 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 30 Aug 2024 11:04:20 +0000 (12:04 +0100)
commitb229b46b0bf7828bef5f88c91708776869b751ac
treec4b66fac0a3a94d9255ca3abbb8e345aef78c3bc
parent6dcd2ac7ea7c5b20b416ee09d8d5d2ec89866ef8
arm64: Add system register encoding for PSTATE.PAN

Although we already have the primitives to set PSTATE.PAN with an
immediate, we don't have a way to read the current state nor set
it ot an arbitrary value (i.e. we can generally save/restore it).

Thankfully, all that is missing for this is the definition for
the PAN pseudo system register, here named SYS_PSTATE_PAN.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/sysreg.h