Make sure that all CPUs end up with the same bits set in SCTLR_EL1.
authorkettenis <kettenis@openbsd.org>
Sat, 27 Mar 2021 20:03:15 +0000 (20:03 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 27 Mar 2021 20:03:15 +0000 (20:03 +0000)
commit9125e0069c7db1eefdb073f443c9bcc88e5de219
tree82b7778451a7a598f652779a990dd0a44ac0fd78
parente9875c8fb27bdee9bc60930a50dd3845ddc5875c
Make sure that all CPUs end up with the same bits set in SCTLR_EL1.
Do this by clearing all the bits marked RES0 and set all the bits
marked RES1 for the ARMv8.0.

Any optional features introduced in later revisions of the architecture
(such as PAN) will be enabled after SCTLR_EL1 is initialized.

ok patrick@
sys/arch/arm64/arm64/locore.S
sys/arch/arm64/include/armreg.h