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)
Wed, Dec 18, 4:11 AM
Unknown Object (File)
Tue, Dec 10, 7:12 PM
Unknown Object (File)
Sun, Dec 1, 10:31 AM
Unknown Object (File)
Sep 25 2024, 6:55 AM
Unknown Object (File)
Sep 25 2024, 1:51 AM
Unknown Object (File)
Sep 24 2024, 9:33 AM
Unknown Object (File)
Sep 22 2024, 9:10 AM
Unknown Object (File)
Sep 17 2024, 6:39 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