Remove bogus unused code.
This commit is contained in:
parent
2b5cfb37f7
commit
b687821494
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38476
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: machdep.c,v 1.10 1998/07/30 08:10:26 dfr Exp $
|
||||
* $Id: machdep.c,v 1.11 1998/08/10 07:53:58 dfr Exp $
|
||||
*/
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -1801,19 +1801,3 @@ bounds_check_with_label(struct buf *bp, struct disklabel *lp, int wlabel)
|
||||
return(-1);
|
||||
|
||||
}
|
||||
|
||||
void atomic_add(u_int32_t* p, u_int32_t v)
|
||||
{
|
||||
u_int32_t temp;
|
||||
__asm__ __volatile__ (
|
||||
"1:\tldl_l %0,%2\n\t" /* load counter value, asserting lock */
|
||||
"addl %3,%0,%0\n\t" /* add our bits */
|
||||
"stl_c %0,%1\n\t" /* attempt to store */
|
||||
"beq %0,2f\n\t" /* if the store failed, spin */
|
||||
"br 3f\n" /* it worked, exit */
|
||||
"2:\tbr 1b\n" /* *p not updated, loop */
|
||||
"3:\tmb\n" /* it worked */
|
||||
: "=&r"(temp), "=m" (*p)
|
||||
: "m"(*p), "r"(v)
|
||||
: "memory");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user