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:
parent
f8e4b4ef49
commit
fd240d6d9f
@ -73,10 +73,9 @@ ENTRY(vm86_bioscall)
|
|||||||
je 1f /* no curproc/npxproc */
|
je 1f /* no curproc/npxproc */
|
||||||
pushl %edx
|
pushl %edx
|
||||||
movl TD_PCB(%ecx),%ecx
|
movl TD_PCB(%ecx),%ecx
|
||||||
addl $PCB_SAVEFPU,%ecx
|
pushl PCB_SAVEFPU(%ecx)
|
||||||
pushl %ecx
|
|
||||||
call npxsave
|
call npxsave
|
||||||
popl %ecx
|
addl $4,%esp
|
||||||
popl %edx /* recover our pcb */
|
popl %edx /* recover our pcb */
|
||||||
1:
|
1:
|
||||||
popfl
|
popfl
|
||||||
|
Loading…
Reference in New Issue
Block a user