summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/atomic.h b/sys/ia64/include/atomic.h
index fd90fa2..631193f 100644
--- a/sys/ia64/include/atomic.h
+++ b/sys/ia64/include/atomic.h
@@ -42,7 +42,7 @@
"mov ar.ccv=%2;;\n\t" \
"cmpxchg" #sz "." #sem " %0=%4,%3,ar.ccv\n\t" \
: "=r" (ret), "=m" (*p) \
- : "r" (cmpval), "r" (newval), "m" (*p) \
+ : "r" ((uint64_t)cmpval), "r" (newval), "m" (*p) \
: "memory")
/*
OpenPOWER on IntegriCloud