mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 20:39:20 +01: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 X28, X29, [LR, #240]
|
||||
LDR LR, [SP], #16
|
||||
DSB SY
|
||||
RET
|
||||
|
||||
.global loadCtx
|
||||
|
Loading…
Reference in New Issue
Block a user