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.
Details
Details
- Reviewers
brooks kib - Commits
- rS363613: Don't include T_USER in si_trapno reported to userland.
- some tests in CheriBSD test the value of si_trapno for some tests and I updated them to remove T_USER after this change
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Yes, but I think it's more readable. If anything, I would be tempted to remove all the T_USER stuff and instead add a few more if (usermode) checks in the bodies of some of the cases. I'm not super motivated to rewrite all that though.