HomeFreeBSD

riscv: improve exception code naming

Description

riscv: improve exception code naming

The existing names were inherited from arm64, but we should prefer
RISC-V terminology. Change the prefix to SCAUSE, and further change the
names to better match the RISC-V spec and be more consistent with one
another. Also, remove two codes that are not defined for S-mode (machine
and hypervisor ecall).

While here, apply style(9) to some condition checks.

Reviewed by: kp
Discussed with: jrtc27
Differential Revision: https://reviews.freebsd.org/D26918

Details

Provenance
mhorneAuthored on
Reviewer
kp
Differential Revision
D26918: riscv: improve exception code names
Parents
rS367019: MFC r366573: Add DSCP support for network QoS to iscsi initiator.
Branches
Unknown
Tags
Unknown