diff options
Diffstat (limited to 'sys/arch/amd64/include/asm.h')
-rw-r--r-- | sys/arch/amd64/include/asm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/asm.h b/sys/arch/amd64/include/asm.h index 583e88829a3..11bb740fabb 100644 --- a/sys/arch/amd64/include/asm.h +++ b/sys/arch/amd64/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.16 2018/07/23 17:54:04 guenther Exp $ */ +/* $OpenBSD: asm.h,v 1.17 2018/07/24 02:42:25 guenther Exp $ */ /* $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $ */ /*- @@ -96,10 +96,12 @@ _ALIGN_TEXT ; \ 3: call 5f ; \ 4: pause ; \ + lfence ; \ call 4b ; \ _ALIGN_TRAPS ; \ 5: call 7f ; \ 6: pause ; \ + lfence ; \ call 6b ; \ _ALIGN_TRAPS ; \ 7: loop 3b ; \ @@ -186,6 +188,7 @@ #define JMP_RETPOLINE(reg) \ call 69f ; \ 68: pause ; \ + lfence ; \ jmp 68b ; \ _ALIGN_TRAPS ; \ 69: mov %reg,(%rsp) ; \ |