From 68478431e006e2db94089ab0c1f411f7a75ef724 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 23 Mar 2018 15:46:53 +0000 Subject: [PATCH] There is no need to disable interrupts around npxsave call. i386 was changed to only require critical section around the thread FPU state manipulations, and vm86_bioscall callers already enter critical section for other reasons. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/i386/i386/vm86bios.s | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/i386/i386/vm86bios.s b/sys/i386/i386/vm86bios.s index c71fc4a31d72..a54803d5134e 100644 --- a/sys/i386/i386/vm86bios.s +++ b/sys/i386/i386/vm86bios.s @@ -61,8 +61,6 @@ ENTRY(vm86_bioscall) pushl %edi pushl %gs - pushfl - cli movl PCPU(CURTHREAD),%ecx cmpl %ecx,PCPU(FPCURTHREAD) /* do we need to save fp? */ jne 1f @@ -73,8 +71,6 @@ ENTRY(vm86_bioscall) addl $4,%esp popl %edx /* recover our pcb */ 1: - popfl - movl SCR_VMFRAME(%edx),%ebx /* target frame location */ movl %ebx,%edi /* destination */ movl SCR_ARGFRAME(%edx),%esi /* source (set on entry) */