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)
Jan 28 2024, 7:12 PM
Unknown Object (File)
Dec 20 2023, 6:46 AM
Unknown Object (File)
Dec 7 2023, 1:17 PM
Unknown Object (File)
Sep 2 2023, 1:05 AM
Unknown Object (File)
Sep 2 2023, 1:01 AM
Unknown Object (File)
Sep 2 2023, 12:59 AM
Unknown Object (File)
Sep 2 2023, 12:47 AM
Unknown Object (File)
Aug 23 2023, 5:57 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