Oops, properly mark a memory operand as both an input and an
output as necessary.
This commit is contained in:
parent
8799a9c64b
commit
18c1bea288
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atomic.h,v 1.5 2000/06/08 02:54:55 thorpej Exp $ */
|
||||
/* $NetBSD: atomic.h,v 1.6 2001/04/16 17:05:22 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -65,7 +65,7 @@ atomic_setbits_ulong(__volatile unsigned long *ulp, unsigned long v)
|
|||
"2: br 1b \n"
|
||||
"3: \n"
|
||||
" # END atomic_setbits_ulong"
|
||||
: "=r" (t0), "=m" (*ulp)
|
||||
: "=r" (t0), "+m" (*ulp)
|
||||
: "r" (v), "1" (*ulp));
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ atomic_clearbits_ulong(__volatile unsigned long *ulp, unsigned long v)
|
|||
"2: br 1b \n"
|
||||
"3: \n"
|
||||
" # END atomic_clearbits_ulong"
|
||||
: "=r" (t0), "=m" (*ulp)
|
||||
: "=r" (t0), "+m" (*ulp)
|
||||
: "r" (~v), "1" (*ulp));
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ atomic_add_ulong(__volatile unsigned long *ulp, unsigned long v)
|
|||
"2: br 1b \n"
|
||||
"3: \n"
|
||||
" # END atomic_add_ulong"
|
||||
: "=r" (t0), "=m" (*ulp)
|
||||
: "=r" (t0), "+m" (*ulp)
|
||||
: "r" (v), "1" (*ulp));
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ atomic_sub_ulong(__volatile unsigned long *ulp, unsigned long v)
|
|||
"2: br 1b \n"
|
||||
"3: \n"
|
||||
" # END atomic_sub_ulong"
|
||||
: "=r" (t0), "=m" (*ulp)
|
||||
: "=r" (t0), "+m" (*ulp)
|
||||
: "r" (v), "1" (*ulp));
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ atomic_loadlatch_ulong(__volatile unsigned long *ulp, unsigned long v)
|
|||
"2: br 1b \n"
|
||||
"3: \n"
|
||||
" # END atomic_loadlatch_ulong"
|
||||
: "=r" (t0), "=r" (v0), "=m" (*ulp)
|
||||
: "=r" (t0), "=r" (v0), "+m" (*ulp)
|
||||
: "r" (v), "2" (*ulp));
|
||||
|
||||
return (v0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lock.h,v 1.13 2000/11/22 07:44:01 thorpej Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.14 2001/04/16 17:05:22 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -88,7 +88,7 @@ __cpu_simple_lock(__cpu_simple_lock_t *alp)
|
|||
"3: br 1b \n"
|
||||
"4: \n"
|
||||
" # END __cpu_simple_lock\n"
|
||||
: "=r" (t0), "=m" (*alp)
|
||||
: "=r" (t0), "+m" (*alp)
|
||||
: "i" (__SIMPLELOCK_LOCKED), "1" (*alp));
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ __cpu_simple_lock_try(__cpu_simple_lock_t *alp)
|
|||
"3: br 1b \n"
|
||||
"4: \n"
|
||||
" # END __cpu_simple_lock_try"
|
||||
: "=r" (t0), "=r" (v0), "=m" (*alp)
|
||||
: "=r" (t0), "=r" (v0), "+m" (*alp)
|
||||
: "i" (__SIMPLELOCK_LOCKED), "2" (*alp));
|
||||
|
||||
return (v0 != 0);
|
||||
|
|
Loading…
Reference in New Issue