Files
linux/arch/arm64/include/asm
James Morse 4663fa6578 arm64: sysreg: Move to use definitions for all the SCTLR bits
commit 7a00d68ebe upstream.

__cpu_setup() configures SCTLR_EL1 using some hard coded hex masks,
and el2_setup() duplicates some this when setting RES1 bits.

Lets make this the same as KVM's hyp_init, which uses named bits.

First, we add definitions for all the SCTLR_EL{1,2} bits, the RES{1,0}
bits, and those we want to set or clear.

Add a build_bug checks to ensures all bits are either set or clear.
This means we don't need to preserve endian-ness configuration
generated elsewhere.

Finally, move the head.S and proc.S users of these hard-coded masks
over to the macro versions.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 12:30:18 +09:00
..
2014-04-18 11:40:33 +02:00
2012-09-17 13:42:21 +01:00
2023-05-12 16:30:53 +09:00
2016-09-09 11:41:13 +01:00
2014-11-05 09:03:25 +01:00
2012-09-17 13:42:04 +01:00
2016-03-04 18:19:17 +00:00
2016-06-27 16:31:25 +01:00
2012-09-17 13:41:56 +01:00
2018-06-06 18:34:12 +02:00
2023-05-16 09:49:51 +09:00
2014-11-28 10:24:59 +00:00
2015-10-12 17:46:36 +01:00
2014-07-10 11:06:00 +01:00
2012-09-17 13:42:09 +01:00
2016-09-09 11:42:27 +01:00