From 1abd133c7182d585a843802d3c9e392c4edfcead Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 28 Jan 2011 19:53:38 +0000 Subject: [PATCH] MFC: r217587 Fix yet another fallout from r208833. VM86 BIOS call may cause page fault when FPU is in use. Approved by: re (kib) git-svn-id: svn://svn.freebsd.org/base/releng/8.2@218032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 36b5b148..db8aea09 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 -- 2.42.0