[PATCH v6 12/12] arm64/sysreg: Generate definitions for SCTLR_EL1

Mark Rutland mark.rutland at arm.com
Wed May 4 09:32:55 PDT 2022


On Tue, May 03, 2022 at 06:02:33PM +0100, Mark Brown wrote:
> Automatically generate register definitions for SCTLR_EL1. No functional
> change.

> -#define SYS_SCTLR_EL1			sys_reg(3, 0, 1, 0, 0)

> +Sysreg	SCTLR_EL1	3	0	1	9	9

Looks like the 0s got replaced with 9s somehow?

I guess at EL1 we happen to get away with that being completely wrong since
we'll use the assembler's version of the register definition, and only KVM
notices.

I'll go make my boot scripts test EL2 as well...

Thanks,
Mark.



More information about the linux-arm-kernel mailing list