HomeFreeBSD

Use csr_read() to read sstatus instead of inline assembly.

Description

Use csr_read() to read sstatus instead of inline assembly.

While here, remove a local variable to avoid the CSR read in non-debug
kernels.

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

Details

Provenance
jhbAuthored on
Reviewer
mhorne
Differential Revision
D23511: Use csr_read() to read sstatus instead of inline assembly.
Parents
rS357593: Remove stale workaround for the htif console.
Branches
Unknown
Tags
Unknown