Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 13:25:16 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334038 - head/sys/amd64/include
Message-ID:  <201805221325.w4MDPG1X005124@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue May 22 13:25:15 2018
New Revision: 334038
URL: https://svnweb.freebsd.org/changeset/base/334038

Log:
  Enable IBRS when entering an interrupt handler from usermode.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/include/asmacros.h

Modified: head/sys/amd64/include/asmacros.h
==============================================================================
--- head/sys/amd64/include/asmacros.h	Tue May 22 13:21:44 2018	(r334037)
+++ head/sys/amd64/include/asmacros.h	Tue May 22 13:25:15 2018	(r334038)
@@ -260,6 +260,7 @@ X\vec_name:
 	jz	1f		/* yes, leave PCB_FULL_IRET alone */
 	movq	PCPU(CURPCB),%r8
 	andl	$~PCB_FULL_IRET,PCB_FLAGS(%r8)
+	call	handle_ibrs_entry
 1:
 	.endm
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805221325.w4MDPG1X005124>