diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-28 12:31:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-11-28 12:31:50 +0000 |
commit | 6972414dec14d307c0cd10bb9c4312c2706c550e (patch) | |
tree | c3f413cda0be74dc8aa9cc44ca4b2ee00e8e05fb /sys | |
parent | a89eacf82fea8269ae711352e61aac2ee60dfa4e (diff) |
Use cas/casx instead of casa/casxa.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/include/atomic.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/include/atomic.h b/sys/arch/sparc64/include/atomic.h index f0a06e01693..4604d6bedd5 100644 --- a/sys/arch/sparc64/include/atomic.h +++ b/sys/arch/sparc64/include/atomic.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atomic.h,v 1.4 2007/11/27 23:29:57 kettenis Exp $ */ +/* $OpenBSD: atomic.h,v 1.5 2007/11/28 12:31:49 kettenis Exp $ */ /* * Copyright (c) 2007 Artur Grabowski <art@openbsd.org> * @@ -23,9 +23,9 @@ static __inline unsigned int sparc64_cas(volatile unsigned int *uip, unsigned int expect, unsigned int new) { - __asm __volatile("casa [%2] %3, %4, %0" + __asm __volatile("cas [%2], %3, %0" : "+r" (new), "=m" (*uip) - : "r" (uip), "n" (ASI_N), "r" (expect), "m" (*uip)); + : "r" (uip), "r" (expect), "m" (*uip)); return (new); } @@ -34,9 +34,9 @@ static __inline unsigned long sparc64_casx(volatile unsigned long *uip, unsigned long expect, unsigned long new) { - __asm __volatile("casxa [%2] %3, %4, %0" + __asm __volatile("casx [%2], %3, %0" : "+r" (new), "=m" (*uip) - : "r" (uip), "n" (ASI_N), "r" (expect), "m" (*uip)); + : "r" (uip), "r" (expect), "m" (*uip)); return (new); } |