diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-20 19:46:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-20 19:46:36 +0000 |
commit | cff7b8faa708e0f716c4c4917e00b605fed09477 (patch) | |
tree | bdfaa6d7ce02a5f1f0e489df141b76a9fa242195 | |
parent | 63209a03c3fa1635f8997c6e3479e1e879713dd8 (diff) |
avoid double fault during early boot; rvb
-rw-r--r-- | sys/arch/i386/i386/trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 9444e32f3ef..3e9d4d4be43 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.26 1998/02/22 21:35:28 niklas Exp $ */ +/* $OpenBSD: trap.c,v 1.27 1998/08/20 19:46:35 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ #undef DEBUG @@ -390,6 +390,8 @@ trap(frame) extern vm_map_t kernel_map; unsigned nss, v; + if (vm == NULL) + goto we_re_toast; va = trunc_page((vm_offset_t)rcr2()); /* * It is only a kernel address space fault iff: |