diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-11 21:18:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-11 21:18:06 +0000 |
commit | d7eb237984124717cb06653a95b1d87a36633649 (patch) | |
tree | bea8b40839d97b2fe84306bb6a31a4cee284fb92 | |
parent | a18217a54d9b44cfa076b5049fe4c4815d7cc0f1 (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.h | 6 |
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); |