From owner-p4-projects@FreeBSD.ORG Thu Feb 26 17:07:21 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 904801065677; Thu, 26 Feb 2009 17:07:21 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39CE9106566C for ; Thu, 26 Feb 2009 17:07:21 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 271F88FC0A for ; Thu, 26 Feb 2009 17:07:21 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QH7KOZ009033 for ; Thu, 26 Feb 2009 17:07:20 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1QH7KOr009031 for perforce@freebsd.org; Thu, 26 Feb 2009 17:07:20 GMT (envelope-from gonzo@FreeBSD.org) Date: Thu, 26 Feb 2009 17:07:20 GMT Message-Id: <200902261707.n1QH7KOr009031@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 158330 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 17:07:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=158330 Change 158330 by gonzo@gonzo_figaro on 2009/02/26 17:06:42 - Redefine *ptr family of atomic ops with type casts Affected files ... .. //depot/projects/avr32/src/sys/avr32/include/atomic.h#4 edit Differences ... ==== //depot/projects/avr32/src/sys/avr32/include/atomic.h#4 (text+ko) ==== @@ -208,14 +208,17 @@ #define atomic_store_rel_long(p, v) \ atomic_store_rel_32((volatile u_int *)(p), (u_int)(v)) - -#define atomic_clear_ptr atomic_clear_32 -#define atomic_set_ptr atomic_set_32 -#define atomic_cmpset_ptr atomic_cmpset_32 +#define atomic_clear_ptr(p, v) \ + atomic_clear_32((volatile u_int *)(p), (u_int)(v)) +#define atomic_set_ptr(p, v) \ + atomic_set_32((volatile u_int *)(p), (u_int)(v)) +#define atomic_cmpset_ptr(dst, old, new) \ + atomic_cmpset_32((volatile u_int *)(dst), (u_int)(old), (u_int)(new)) +#define atomic_cmpset_acq_ptr atomic_cmpset_ptr #define atomic_cmpset_rel_ptr atomic_cmpset_ptr -#define atomic_cmpset_acq_ptr atomic_cmpset_ptr -#define atomic_store_ptr atomic_store_32 -#define atomic_store_rel_ptr atomic_store_ptr +#define atomic_store_ptr(p, v) \ + atomic_store_32((volatile u_int *)(p), (u_int)(v)) +#define atomic_store_rel_ptr atomic_store_ptr #define atomic_add_int atomic_add_32 #define atomic_add_acq_int atomic_add_int