Commit 14f7050d authored by Konstantin Belousov's avatar Konstantin Belousov
Browse files

Enable IBRS when entering an interrupt handler from usermode.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
parent 5a00bf53
...@@ -260,6 +260,7 @@ X\vec_name: ...@@ -260,6 +260,7 @@ X\vec_name:
jz 1f /* yes, leave PCB_FULL_IRET alone */ jz 1f /* yes, leave PCB_FULL_IRET alone */
movq PCPU(CURPCB),%r8 movq PCPU(CURPCB),%r8
andl $~PCB_FULL_IRET,PCB_FLAGS(%r8) andl $~PCB_FULL_IRET,PCB_FLAGS(%r8)
call handle_ibrs_entry
1: 1:
.endm .endm
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment