Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103336806
D22084.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D22084.diff
View Options
Index: head/sys/riscv/include/atomic.h
===================================================================
--- head/sys/riscv/include/atomic.h
+++ head/sys/riscv/include/atomic.h
@@ -182,7 +182,7 @@
"bnez %1, 0b\n"
"1:"
: "=&r" (tmp), "=&r" (res), "+A" (*p)
- : "rJ" (cmpval), "rJ" (newval)
+ : "rJ" ((long)(int32_t)cmpval), "rJ" (newval)
: "memory");
return (!res);
@@ -207,7 +207,7 @@
"sw %0, %3\n" /* Save old value */
"2:"
: "=&r" (tmp), "=&r" (res), "+A" (*p), "+A" (*cmpval)
- : "rJ" (*cmpval), "rJ" (newval)
+ : "rJ" ((long)(int32_t)*cmpval), "rJ" (newval)
: "memory");
return (!res);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 5:49 PM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14825780
Default Alt Text
D22084.diff (641 B)
Attached To
Mode
D22084: Fix atomic_*cmpset32 on riscv64 with clang.
Attached
Detach File
Event Timeline
Log In to Comment