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
This commit is contained in:
parent
97713e367c
commit
e114084144
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user