From 82460477c3da258e4fbb0fcda25b582164ec4fd0 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 28 Jan 2011 19:53:38 +0000 Subject: MFC: r217587 Fix yet another fallout from r208833. VM86 BIOS call may cause page fault when FPU is in use. Approved by: re (kib) --- sys/i386/i386/vm86bios.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/i386/i386/vm86bios.s b/sys/i386/i386/vm86bios.s index 36b5b1486e6a..db8aea09d6b2 100644 --- a/sys/i386/i386/vm86bios.s +++ b/sys/i386/i386/vm86bios.s @@ -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 -- cgit v1.3