All exceptions IDT descriptors must use interrupt gates on 4/4 kernel.

Fix it for #MF.

Noted by:	rlibby
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2018-06-12 10:43:20 +00:00
parent 7a18e90447
commit 6ee7d5afcc

View File

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