From owner-cvs-src@FreeBSD.ORG Wed Jul 27 20:01:45 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E2E516A41F; Wed, 27 Jul 2005 20:01:45 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5374943D5D; Wed, 27 Jul 2005 20:01:45 +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 j6RK1jed072125; Wed, 27 Jul 2005 20:01:45 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6RK1jjA072124; Wed, 27 Jul 2005 20:01:45 GMT (envelope-from jhb) Message-Id: <200507272001.j6RK1jjA072124@repoman.freebsd.org> From: John Baldwin Date: Wed, 27 Jul 2005 20:01:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/arm/include atomic.h src/sys/sparc64/include cpufunc.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 20:01:45 -0000 jhb 2005-07-27 20:01:45 UTC FreeBSD src repository Modified files: sys/arm/include atomic.h sys/sparc64/include cpufunc.h Log: Add extra constraints to tell the compiler that the memory be modified in the arm __swp() and sparc64 casa() and casax() functions is actually being used as an input and output and not just the value of the register that points to the memory location. This was the underlying source of the mbuf refcount problems on sparc64 a while back. For arm this should be a nop because __swp() has a constraint to clobber all memory which can probably be removed now. Reviewed by: alc, cognet MFC after: 1 week Revision Changes Path 1.10 +4 -2 src/sys/arm/include/atomic.h 1.21 +6 -4 src/sys/sparc64/include/cpufunc.h