diff options
author | 1999-03-21 03:30:01 +0000 | |
---|---|---|
committer | 1999-03-21 03:30:01 +0000 | |
commit | b99a61c7ea34de0a9d21592a51f70e7b211a6beb (patch) | |
tree | 9a9981b82a110944b37845e8cffbd6e856491f91 | |
parent | Do not enable command tagged queuing by default (diff) | |
download | wireguard-openbsd-b99a61c7ea34de0a9d21592a51f70e7b211a6beb.tar.xz wireguard-openbsd-b99a61c7ea34de0a9d21592a51f70e7b211a6beb.zip |
Fix TSS fault handling.
-rw-r--r-- | sys/arch/i386/i386/trap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index d25a0c31d86..ebf99fb4e55 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.30 1999/02/26 04:42:14 art Exp $ */ +/* $OpenBSD: trap.c,v 1.31 1999/03/21 03:30:01 weingart Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ #undef DEBUG @@ -326,6 +326,11 @@ trap(frame) trapsignal(p, SIGSEGV, vftype, SEGV_MAPERR, sv); goto out; + case T_TSSFLT|T_USER: + sv.sival_int = frame.tf_eip; + trapsignal(p, SIGBUS, vftype, BUS_OBJERR, sv); + goto out; + case T_SEGNPFLT|T_USER: case T_STKFLT|T_USER: sv.sival_int = frame.tf_eip; |