diff options
author | 1998-08-20 19:46:35 +0000 | |
---|---|---|
committer | 1998-08-20 19:46:35 +0000 | |
commit | eccc9eb7bf60b07f8d6ae02bc3edc804c5c80f25 (patch) | |
tree | 2d5891f5bf005a5bef06fa00cf41290133e57a37 | |
parent | clear IMAXBEL bit; msaitoh (diff) | |
download | wireguard-openbsd-eccc9eb7bf60b07f8d6ae02bc3edc804c5c80f25.tar.xz wireguard-openbsd-eccc9eb7bf60b07f8d6ae02bc3edc804c5c80f25.zip |
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: |