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)
Nov 26 2025, 10:04 PM
Unknown Object (File)
Nov 24 2025, 5:03 PM
Unknown Object (File)
Nov 20 2025, 3:12 PM
Unknown Object (File)
Nov 20 2025, 3:11 PM
Unknown Object (File)
Nov 20 2025, 3:06 PM
Unknown Object (File)
Nov 20 2025, 2:57 PM
Unknown Object (File)
Nov 19 2025, 3:28 AM
Unknown Object (File)
Nov 16 2025, 10:54 PM
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