Fix yet another fallout from r208833. VM86 BIOS call may cause page fault

when FPU is in use.

Reported by:	Marc UBM Bocklet (ubm dot freebsd at googlemail dot com)
Tested by:	b. f. (bf1783 at googlemail dot com)
MFC after:	3 days
This commit is contained in:
Jung-uk Kim 2011-01-19 17:09:07 +00:00
parent f8e4b4ef49
commit fd240d6d9f

View File

@ -73,10 +73,9 @@ ENTRY(vm86_bioscall)
je 1f /* no curproc/npxproc */
pushl %edx
movl TD_PCB(%ecx),%ecx
addl $PCB_SAVEFPU,%ecx
pushl %ecx
pushl PCB_SAVEFPU(%ecx)
call npxsave
popl %ecx
addl $4,%esp
popl %edx /* recover our pcb */
1:
popfl