HomeFreeBSD

riscv: Tidy panic messages for exceptions

Description

riscv: Tidy panic messages for exceptions

  • Remove trailing newlines
  • Be consistent about the format used to print pointer values
  • Print the trap value for access faults (it is the faulting address if non-zero) and illegal instructions (it is the first N bytes of the decoded instruction if non-zero)

Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41786

(cherry picked from commit ff79f35bdae5742f4e56e1dc18fffc5d9ea98876)

Details

Provenance
jhbAuthored on Oct 11 2023, 9:21 PM
Reviewer
markj
Differential Revision
D41786: riscv: Tidy panic messages for exceptions
Parents
rG37ba303aa01c: Trim various $FreeBSD$
Branches
Unknown
Tags
Unknown