diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-07-27 16:25:18 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-07-27 16:25:18 +0000 |
commit | e21c0b0753092a6299544a001c34b19d5a324972 (patch) | |
tree | 76d9437dc5c6d54114d6e26e370f71ada472f996 | |
parent | c2895f19347c21f3ebb853d417581603cb4fbba0 (diff) | |
download | src-e21c0b0753092a6299544a001c34b19d5a324972.tar.gz src-e21c0b0753092a6299544a001c34b19d5a324972.zip |
Don't include T_USER in si_trapno reported to userland.
Signals are only reported for user traps, so T_USER is redundant. It
is also a software convention and not included in the value reported
by the hardware.
Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25769
Notes
Notes:
svn path=/head/; revision=363613
-rw-r--r-- | sys/mips/mips/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c index 26f7c1515818..a2cd7e0e8d6e 100644 --- a/sys/mips/mips/trap.c +++ b/sys/mips/mips/trap.c @@ -1107,7 +1107,7 @@ err: ksi.ksi_signo = i; ksi.ksi_code = ucode; ksi.ksi_addr = (void *)addr; - ksi.ksi_trapno = type; + ksi.ksi_trapno = type & ~T_USER; trapsignal(td, &ksi); out: |