Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148315854
D23434.id67535.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
779 B
Referenced Files
None
Subscribers
None
D23434.id67535.diff
View Options
Index: sys/riscv/include/riscvreg.h
===================================================================
--- sys/riscv/include/riscvreg.h
+++ sys/riscv/include/riscvreg.h
@@ -73,7 +73,7 @@
#define SSTATUS_XS_MASK (0x3 << SSTATUS_XS_SHIFT)
#define SSTATUS_SUM (1 << 18)
#if __riscv_xlen == 64
-#define SSTATUS_SD (1 << 63)
+#define SSTATUS_SD (1ul << 63)
#else
#define SSTATUS_SD (1 << 31)
#endif
@@ -110,8 +110,11 @@
#define MSTATUS_VM_SV48 10
#define MSTATUS_VM_SV57 11
#define MSTATUS_VM_SV64 12
-#define MSTATUS32_SD (1 << 63)
-#define MSTATUS64_SD (1 << 31)
+#if __riscv_xlen == 64
+#define MSTATUS_SD (1ul << 63)
+#else
+#define MSTATUS_SD (1 << 31)
+#endif
#define MSTATUS_PRV_U 0 /* user */
#define MSTATUS_PRV_S 1 /* supervisor */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 3:30 AM (6 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29874981
Default Alt Text
D23434.id67535.diff (779 B)
Attached To
Mode
D23434: Fix 64-bit value of SSTATUS_SD to use an unsigned long.
Attached
Detach File
Event Timeline
Log In to Comment