Page MenuHomeFreeBSD

Fix definition of SSTATUS_SD
ClosedPublic

Authored by mhorne on Jan 28 2020, 5:53 PM.
Tags
None
Referenced Files
F168982527: D23402.id67425.diff
Mon, Aug 31, 1:25 AM
F168961295: D23402.diff
Sun, Aug 30, 11:31 PM
F168957295: D23402.id.diff
Sun, Aug 30, 11:07 PM
F168955885: D23402.id67455.diff
Sun, Aug 30, 10:59 PM
Unknown Object (File)
Sat, Aug 29, 1:37 AM
Unknown Object (File)
Wed, Aug 26, 3:33 PM
Unknown Object (File)
Mon, Aug 24, 10:20 AM
Unknown Object (File)
Sat, Aug 22, 10:24 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