mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 15:15:30 +03:00
guest: Add memory barrier after saving context
Forces all registers to be saved before signalling to the kernel that we are ready; without this the kernel may read incorrect context data causing undefined behaviour.
This commit is contained in:
parent
00cdc1fd6f
commit
2aebf04b4b
@ -19,6 +19,7 @@ saveCtx:
|
|||||||
STP X26, X27, [LR, #224]
|
STP X26, X27, [LR, #224]
|
||||||
STP X28, X29, [LR, #240]
|
STP X28, X29, [LR, #240]
|
||||||
LDR LR, [SP], #16
|
LDR LR, [SP], #16
|
||||||
|
DSB SY
|
||||||
RET
|
RET
|
||||||
|
|
||||||
.global loadCtx
|
.global loadCtx
|
||||||
|
Loading…
Reference in New Issue
Block a user