]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/sysreg: Move POR_EL0_INIT to asm/por.h
authorKevin Brodsky <kevin.brodsky@arm.com>
Wed, 19 Feb 2025 16:40:29 +0000 (16:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Mar 2025 18:10:41 +0000 (18:10 +0000)
commit650701e4ead6c97b0fbfbcb6920451e4070aadb0
treed6b1705ca2bff5093bc911da319b290785cab12b
parent83d78bbfd2a489f61e68f9e5e859ec91c247fc04
arm64/sysreg: Move POR_EL0_INIT to asm/por.h

The value of POR_EL0_INIT is not architectural, it is a software
decision. Since we have a dedicated header for POR_ELx, we might as
well define POR_EL0_INIT there.

While at it also define POR_EL0_INIT using POR_ELx_PERM_PREP(),
making it clearer that we are setting permissions for POIndex/pkey
0.

Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Link: https://lore.kernel.org/r/20250219164029.2309119-4-kevin.brodsky@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/por.h
arch/arm64/include/asm/sysreg.h