HomeFreeBSD

Fix EXCP_MASK to include all relevant bits from scause.

Description

Fix EXCP_MASK to include all relevant bits from scause.

While cause codes higher than 16 are reserved, the exception code
field of the register is defined to be all bits but the upper-most
bit.

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D23510

Details

Provenance
jhbAuthored on
Reviewer
mhorne
Differential Revision
D23510: Fix EXCP_MASK to include all relevant bits from scause.
Parents
rS357594: Use csr_read() to read sstatus instead of inline assembly.
Branches
Unknown
Tags
Unknown