summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1998-10-01 20:45:28 +0000
committerjlemon <jlemon@FreeBSD.org>1998-10-01 20:45:28 +0000
commit9fb6dbbc14017286091a32441738682e3922cb53 (patch)
treedaf704a9cb2713f6f8bce6e4ec4a4bfaacdbd4cc
parentd7482b56212d485dff683787a7390c166de663e7 (diff)
downloadFreeBSD-src-9fb6dbbc14017286091a32441738682e3922cb53.zip
FreeBSD-src-9fb6dbbc14017286091a32441738682e3922cb53.tar.gz
Don't try to save FP state if npxproc is null.
Submitted by: Tor Egge
-rw-r--r--sys/i386/i386/vm86bios.s4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/i386/vm86bios.s b/sys/i386/i386/vm86bios.s
index 8607a46..ce53bcf 100644
--- a/sys/i386/i386/vm86bios.s
+++ b/sys/i386/i386/vm86bios.s
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vm86bios.s,v 1.5 1998/09/28 03:26:22 tegge Exp $
+ * $Id: vm86bios.s,v 1.6 1998/09/29 18:01:18 jlemon Exp $
*/
#include "opt_vm86.h"
@@ -75,6 +75,8 @@ ENTRY(vm86_bioscall)
movl _curproc,%ecx
cmpl %ecx,_npxproc /* do we need to save fp? */
jne 1f
+ testl %ecx,%ecx
+ je 1f /* no curproc/npxproc */
pushl %edx
movl P_ADDR(%ecx),%ecx
addl $PCB_SAVEFPU,%ecx
OpenPOWER on IntegriCloud