diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-19 16:58:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-19 16:58:44 +0000 |
commit | b2c9c372d08b16b644b3712d7e64a24c9479a287 (patch) | |
tree | d246bac3e648d0f10e560b4d85b871923c55ba8f /sys/arch/m88k | |
parent | 1bbb70e9c72298386ea712312d0475d87d8eb395 (diff) |
Simpler asm constraints for simplelock operations.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/lock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m88k/include/lock.h b/sys/arch/m88k/include/lock.h index ef6ef14556d..7d377703b7a 100644 --- a/sys/arch/m88k/include/lock.h +++ b/sys/arch/m88k/include/lock.h @@ -1,6 +1,6 @@ #ifndef _M88K_LOCK_H_ #define _M88K_LOCK_H_ -/* $OpenBSD: lock.h,v 1.2 2006/11/18 22:47:13 miod Exp $ */ +/* $OpenBSD: lock.h,v 1.3 2007/05/19 16:58:43 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat. @@ -49,7 +49,7 @@ __cpu_simple_lock(__cpu_simple_lock_t *l) do { old = __SIMPLELOCK_LOCKED; __asm__ __volatile__ - ("xmem %0, %2, r0" : "=r" (old) : "0" (old), "r" (l)); + ("xmem %0, %1, r0" : "+r" (old) : "r" (l)); } while (old != __SIMPLELOCK_UNLOCKED); } @@ -59,7 +59,7 @@ __cpu_simple_lock_try(__cpu_simple_lock_t *l) __cpu_simple_lock_t old = __SIMPLELOCK_LOCKED; __asm__ __volatile__ - ("xmem %0, %2, r0" : "=r" (old) : "0" (old), "r" (l)); + ("xmem %0, %1, r0" : "+r" (old) : "r" (l)); return (old == __SIMPLELOCK_UNLOCKED); } |