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 Feb 5 2020, 8:32 PM
Parents
rGb68892fe613b: Remove stale workaround for the htif console.
Branches
Unknown
Tags
Unknown

Event Timeline