summaryrefslogtreecommitdiff
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-05-17 05:45:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-05-17 05:45:39 +0000
commitae3f633bae373644db1ecd18f88c2446274949e2 (patch)
tree5c09508581c4412c0cd99e0571cfa82cb5d21a49 /sys/alpha/include
parentcf45dcc8e6021b24bbf1584358905d36fb59cd48 (diff)
Notes
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/atomic.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/alpha/include/atomic.h b/sys/alpha/include/atomic.h
index f5dd718d8661..af9c39714091 100644
--- a/sys/alpha/include/atomic.h
+++ b/sys/alpha/include/atomic.h
@@ -356,9 +356,6 @@ atomic_cmpset_32(volatile u_int32_t* p, u_int32_t cmpval, u_int32_t newval)
__asm __volatile (
"1:\tldl_l %0, %4\n\t" /* load old value */
-#ifdef notyet
- "zapnot %0,0xf,%0\n\t" /* Chop of signed bits */
-#endif
"cmpeq %0, %2, %0\n\t" /* compare */
"beq %0, 2f\n\t" /* exit if not equal */
"mov %3, %0\n\t" /* value to store */
@@ -370,7 +367,7 @@ atomic_cmpset_32(volatile u_int32_t* p, u_int32_t cmpval, u_int32_t newval)
"3:\tbr 1b\n" /* try again */
".previous\n"
: "=&r" (ret), "=m" (*p)
- : "r" (cmpval), "r" (newval), "m" (*p)
+ : "r" ((long)(int)cmpval), "r" (newval), "m" (*p)
: "memory");
return ret;