kern: add speculation barriers after eret

This commit is contained in:
Michael Scire committed 2023-10-11 03:21:06 -07:00
1 parent 9e99f36d7c
commit b9a4c2bdba
6 files changed
+22 -19

No files matched your search

@@ -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