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)
Sat, May 30, 3:18 PM
Unknown Object (File)
Fri, May 29, 9:39 PM
Unknown Object (File)
Tue, May 26, 7:40 PM
Unknown Object (File)
Wed, May 13, 1:22 PM
Unknown Object (File)
Mon, May 11, 5:20 PM
Unknown Object (File)
May 11 2026, 1:53 PM
Unknown Object (File)
May 10 2026, 9:38 AM
Unknown Object (File)
May 10 2026, 9:38 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