From b687821494985172838624aa852345ab68f94ac9 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sat, 22 Aug 1998 10:32:38 +0000 Subject: [PATCH] Remove bogus unused code. --- sys/alpha/alpha/machdep.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index ea7eb6fa2876..26b06d6add2d 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -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"); -}