Page MenuHomeFreeBSD

Fix definition of SSTATUS_SD
ClosedPublic

Authored by mhorne on Jan 28 2020, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 27, 11:02 AM
Unknown Object (File)
Sun, Oct 26, 10:39 AM
Unknown Object (File)
Mon, Oct 20, 7:30 AM
Unknown Object (File)
Mon, Oct 20, 7:30 AM
Unknown Object (File)
Mon, Oct 20, 7:30 AM
Unknown Object (File)
Sun, Oct 19, 4:33 PM
Unknown Object (File)
Fri, Oct 17, 9:42 PM
Unknown Object (File)
Thu, Oct 16, 12:57 AM
Subscribers

Details

Summary

The SD bit is defined as the MSB of the sstatus register, meaning its
position may vary depending on the CSR's length. Previously, there were
two (unused) defines for this, for the 32 and 64-bit cases, but their
definitions were swapped.

Consolidate this into one define: SSTATUS_SD, and make the definition
dependent on the value of __riscv_xlen.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable