summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-07-11 21:18:06 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-07-11 21:18:06 +0000
commitd7eb237984124717cb06653a95b1d87a36633649 (patch)
treebea8b40839d97b2fe84306bb6a31a4cee284fb92
parenta18217a54d9b44cfa076b5049fe4c4815d7cc0f1 (diff)
Use "i" constrain instead of "n" constrain in inline assembly. Makes clang
happy. ok visa@, mpi@
-rw-r--r--sys/arch/powerpc/include/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/atomic.h b/sys/arch/powerpc/include/atomic.h
index 4af7cff445d..f543a284d85 100644
--- a/sys/arch/powerpc/include/atomic.h
+++ b/sys/arch/powerpc/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.11 2017/05/12 08:47:48 mpi Exp $ */
+/* $OpenBSD: atomic.h,v 1.12 2019/07/11 21:18:05 kettenis Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -246,7 +246,7 @@ _atomic_addic_int_nv(volatile unsigned int *p, unsigned int v)
" stwcx. %0, 0, %2 \n"
" bne- 1b \n"
: "=&r" (rv), "+m" (*p)
- : "r" (p), "n" (v)
+ : "r" (p), "i" (v)
: "cc", "xer");
return (rv);
@@ -265,7 +265,7 @@ _atomic_addic_long_nv(volatile unsigned long *p, unsigned long v)
" stwcx. %0, 0, %2 \n"
" bne- 1b \n"
: "=&r" (rv), "+m" (*p)
- : "r" (p), "n" (v)
+ : "r" (p), "i" (v)
: "cc", "xer");
return (rv);