kern: add speculation barriers after eret

This commit is contained in:
Michael Scire authored and SciresM committed 2023-10-12 08:55:58 -07:00
1 parent ec96203cb7
commit c72ba35684
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