summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-10-16 18:40:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-10-16 18:40:53 +0000
commiteb4ff6a9370d3f7782754a6880b869535cad787c (patch)
treed8c97b51aef5b3ef3f1a18bd4f76d8807aefed22
parent3fd4bd169476536c35b35bc8909aa053ca2f6921 (diff)
Deliver SIGTRAP, rather than SIGEMT, for trap instructions which are neither
debugger breakpoints nor compiler-generated divide by zero reports. SIGEMT is a historical curiosity which makes no sense nowadays except on PDP-11 and VAX hardware. Discussed with imp@ and visa@ long ago.
-rw-r--r--sys/arch/mips64/mips64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index ff253cd3a02..1afcc27ee2f 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.172 2024/09/20 02:00:46 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.173 2024/10/16 18:40:52 miod Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -645,8 +645,8 @@ fault_common_no_miss:
sigexit(p, SIGABRT);
/* NOTREACHED */
} else {
- signal = SIGEMT; /* Stuff it with something for now */
- sicode = 0;
+ signal = SIGTRAP;
+ sicode = TRAP_BRKPT;
}
break;
}