mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
kern: add speculation barriers after eret
This commit is contained in:
parent
9e99f36d7c
commit
b9a4c2bdba
6 changed files with 22 additions and 19 deletions
|
@ -94,3 +94,8 @@ label_done:
|
|||
ENABLE_FPU(xtmp1) \
|
||||
GET_THREAD_CONTEXT_AND_RESTORE_FPCR_FPSR(ctx, xtmp1, xtmp2, wtmp1, wtmp2) \
|
||||
RESTORE_FPU32_ALL_REGISTERS(ctx, xtmp1)
|
||||
|
||||
#define ERET_WITH_SPECULATION_BARRIER \
|
||||
eret; \
|
||||
dsb nsh; \
|
||||
isb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue