summaryrefslogtreecommitdiff
path: root/atomic/unix/ia32.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-07-28 05:06:53 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-07-28 05:06:53 +0000
commitf2be5817e9c3cb98a81689acb42dc6549ae0448f (patch)
tree3c0eb477642c8cddce38b6c98c437cca2f2cbda9 /atomic/unix/ia32.c
parentb641829dcad12c65ed87cf0ebe11100791b9256a (diff)
Diffstat (limited to 'atomic/unix/ia32.c')
-rw-r--r--atomic/unix/ia32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atomic/unix/ia32.c b/atomic/unix/ia32.c
index 3826f9275509e..63f48a753a9fe 100644
--- a/atomic/unix/ia32.c
+++ b/atomic/unix/ia32.c
@@ -117,7 +117,7 @@ APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with)
#elif APR_SIZEOF_VOIDP == 8
asm volatile ("xchgq %q2, %1"
: "=a" (prev), "+m" (*mem)
- : "r" ((unsigned long)with));
+ : "0" (with));
#else
#error APR_SIZEOF_VOIDP value not supported
#endif