[arch][arm64] make sure SPSel is set to SP_ELx at boot

Just a safety check, has not been a problem in general, but pulled from
a similar trusty change.
This commit is contained in:
Travis Geiselbrecht
2025-01-11 17:11:27 -08:00
parent 0ac7a2d7cb
commit 538f32e09d

View File

@@ -52,6 +52,9 @@ arm_reset:
bic tmp, tmp, #(1<<1) /* Disable Alignment Checking for EL1 EL0 */
msr sctlr_el1, tmp
/* make sure SP_ELx is being used */
msr spsel, #1
/* set up the mmu according to mmu_initial_mappings */
/* load the base of the translation table and clear the table */