Author: jkim
Date: Wed Jan 19 17:09:07 2011
New Revision: 217587
URL: http://svn.freebsd.org/changeset/base/217587

Log:
  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

Modified:
  head/sys/i386/i386/vm86bios.s

Modified: head/sys/i386/i386/vm86bios.s
==============================================================================
--- head/sys/i386/i386/vm86bios.s       Wed Jan 19 17:04:07 2011        
(r217586)
+++ head/sys/i386/i386/vm86bios.s       Wed Jan 19 17:09:07 2011        
(r217587)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to