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)
Tue, Aug 18, 4:35 PM
Unknown Object (File)
Mon, Aug 17, 3:47 PM
Unknown Object (File)
Mon, Aug 17, 2:41 PM
Unknown Object (File)
Sun, Aug 16, 8:32 PM
Unknown Object (File)
Sat, Aug 15, 8:38 PM
Unknown Object (File)
Fri, Aug 14, 5:15 PM
Unknown Object (File)
Thu, Aug 13, 4:31 PM
Unknown Object (File)
Wed, Aug 12, 9:50 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28993
Build 26967: arc lint + arc unit