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 Feb 5 2020, 8:34 PM
Parents
rGac2b208d08ae: Use csr_read() to read sstatus instead of inline assembly.
Branches
Unknown
Tags
Unknown

Event Timeline