summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-02-03 01:45:57 +0000
committerguenther <guenther@openbsd.org>2019-02-03 01:45:57 +0000
commit235e503e5ac9253e8ca8448edc159c439d93a33e (patch)
tree6742cb123a8850de8688cde962818c69f8c123d7
parentcrank datasize, because mesa is a pig (diff)
downloadwireguard-openbsd-235e503e5ac9253e8ca8448edc159c439d93a33e.tar.xz
wireguard-openbsd-235e503e5ac9253e8ca8448edc159c439d93a33e.zip
Delete cases in kerntrap() that just jump to the default case
ok mlarkin@
-rw-r--r--sys/arch/amd64/amd64/trap.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c
index 8c33c0bec26..b51dc4299f7 100644
--- a/sys/arch/amd64/amd64/trap.c
+++ b/sys/arch/amd64/amd64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.73 2018/07/06 02:43:01 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.74 2019/02/03 01:45:57 guenther Exp $ */
/* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */
/*-
@@ -284,20 +284,11 @@ kerntrap(struct trapframe *frame)
type, frame->tf_err, frame->tf_rip);
/*NOTREACHED*/
- case T_PROTFLT:
- case T_SEGNPFLT:
- case T_ALIGNFLT:
- case T_TSSFLT:
- goto we_re_toast;
-
case T_PAGEFLT: /* allow page faults in kernel mode */
if (pageflttrap(frame, 0))
return;
goto we_re_toast;
- case T_TRCTRAP:
- goto we_re_toast;
-
#if NISA > 0
case T_NMI:
#ifdef DDB