Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 10:43:20 +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: r334995 - head/sys/i386/i386
Message-ID:  <201806121043.w5CAhKhd014184@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jun 12 10:43:20 2018
New Revision: 334995
URL: https://svnweb.freebsd.org/changeset/base/334995

Log:
  All exceptions IDT descriptors must use interrupt gates on 4/4 kernel.
  Fix it for #MF.
  
  Noted by:	rlibby
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/i386/i386/machdep.c

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Tue Jun 12 10:41:26 2018	(r334994)
+++ head/sys/i386/i386/machdep.c	Tue Jun 12 10:43:20 2018	(r334995)
@@ -2253,7 +2253,7 @@ i386_setidt1(void)
 	    GSEL(GCODE_SEL, SEL_KPL));
 	setidt(IDT_PF, &IDTVEC(page), SDT_SYS386IGT, SEL_KPL,
 	    GSEL(GCODE_SEL, SEL_KPL));
-	setidt(IDT_MF, &IDTVEC(fpu), SDT_SYS386TGT, SEL_KPL,
+	setidt(IDT_MF, &IDTVEC(fpu), SDT_SYS386IGT, SEL_KPL,
 	    GSEL(GCODE_SEL, SEL_KPL));
 	setidt(IDT_AC, &IDTVEC(align), SDT_SYS386IGT, SEL_KPL,
 	    GSEL(GCODE_SEL, SEL_KPL));



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