Page MenuHomeFreeBSD

Set si_trapno to the exception code from scause.
ClosedPublic

Authored by jhb on Jul 22 2020, 4:29 PM.
Tags
None
Referenced Files
F166486530: D25770.id75008.diff
Thu, Aug 13, 7:56 PM
F166477434: D25770.id74797.diff
Thu, Aug 13, 7:16 PM
Unknown Object (File)
Wed, Aug 12, 4:44 PM
Unknown Object (File)
Mon, Aug 10, 9:27 PM
Unknown Object (File)
Sun, Aug 9, 12:46 PM
Unknown Object (File)
Sun, Aug 9, 9:29 AM
Unknown Object (File)
Sun, Aug 9, 9:22 AM
Unknown Object (File)
Sat, Aug 8, 10:27 PM
Subscribers

Details

Test Plan
  • tested in CheriBSD where we have some unit tests that check the value of si_trapno

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jul 22 2020, 4:29 PM
jhb created this revision.
kib added inline comments.
sys/riscv/riscv/trap.c
321 ↗(On Diff #74797)

Extra ().

331 ↗(On Diff #74797)

Missing space.

This revision is now accepted and ready to land.Jul 24 2020, 6:35 PM
sys/riscv/riscv/trap.c
331 ↗(On Diff #74797)

I've since fixed these in a later change in this series that's already been merged.

This revision was automatically updated to reflect the committed changes.