kern: add speculation barriers after eret

This commit is contained in:
Michael Scire
2023-10-11 03:21:06 -07:00
parent 9e99f36d7c
commit b9a4c2bdba
6 changed files with 22 additions and 19 deletions

View File

@@ -377,7 +377,7 @@ _ZN3ams4kern4init16JumpFromEL2ToEL1Ev:
mov x0, #0xC5
msr spsr_el2, x0
eret
ERET_WITH_SPECULATION_BARRIER
#endif
/* ams::kern::init::DisableMmuAndCaches() */