From owner-p4-projects@FreeBSD.ORG Thu Mar 3 21:04:25 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 95E9616A4D0; Thu, 3 Mar 2005 21:04:25 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A91C16A4CE for ; Thu, 3 Mar 2005 21:04:25 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 549D043D2F for ; Thu, 3 Mar 2005 21:04:25 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j23L4PeP010117 for ; Thu, 3 Mar 2005 21:04:25 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j23L4Pjw010114 for perforce@freebsd.org; Thu, 3 Mar 2005 21:04:25 GMT (envelope-from jhb@freebsd.org) Date: Thu, 3 Mar 2005 21:04:25 GMT Message-Id: <200503032104.j23L4Pjw010114@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 72450 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 21:04:26 -0000 http://perforce.freebsd.org/chv.cgi?CH=72450 Change 72450 by jhb@jhb_slimer on 2005/03/03 21:03:35 Clobber memory for cas{x,}a() inlines. Suggested by: alc Affected files ... .. //depot/projects/smpng/sys/sparc64/include/cpufunc.h#20 edit Differences ... ==== //depot/projects/smpng/sys/sparc64/include/cpufunc.h#20 (text+ko) ==== @@ -63,14 +63,14 @@ #define casa(rs1, rs2, rd, asi) ({ \ u_int __rd = (uint32_t)(rd); \ __asm __volatile("casa [%1] %2, %3, %0" \ - : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2)); \ + : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2) : "memory");\ __rd; \ }) #define casxa(rs1, rs2, rd, asi) ({ \ u_long __rd = (uint64_t)(rd); \ __asm __volatile("casxa [%1] %2, %3, %0" \ - : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2)); \ + : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2) : "memory");\ __rd; \ })