freebsd-src/sys/riscv
Mitchell Horne 741ba007c1 Fix definition of SSTATUS_SD
The SD bit is defined as the MSB of the sstatus register, meaning its
position will 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 these into one define: SSTATUS_SD, and make the definition
dependent on the value of __riscv_xlen.

Reviewed by:	br
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D23402
2020-01-29 15:50:48 +00:00
..
conf Include the PCI stack to the riscv GENERIC kernel. 2020-01-24 17:10:21 +00:00
include Fix definition of SSTATUS_SD 2020-01-29 15:50:48 +00:00
riscv Check for invalid sstatus values in set_mcontext(). 2020-01-17 19:13:49 +00:00
sifive sifive: Fix incorrect tx/rx ctrl defines 2020-01-07 09:02:14 +00:00