kern: add speculation barriers after eret

This commit is contained in:
Michael Scire 2023-10-11 03:21:06 -07:00
parent 9e99f36d7c
commit b9a4c2bdba
6 changed files with 22 additions and 19 deletions

View file

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