From owner-cvs-all Sun Nov 10 10:42: 1 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 978BA37B401; Sun, 10 Nov 2002 10:41:59 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB73F43E3B; Sun, 10 Nov 2002 10:41:58 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.5) with ESMTP id gAAIwPbd088855; Sun, 10 Nov 2002 13:58:25 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.5/Submit) id gAAIwPtm088854; Sun, 10 Nov 2002 13:58:25 -0500 (EST) Date: Sun, 10 Nov 2002 13:58:25 -0500 From: Jake Burkholder To: Matt Jacob Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/vm uma_dbg.c Message-ID: <20021110135825.B85338@locore.ca> References: <200211101616.gAAGGiuV009632@repoman.freebsd.org> <20021110135614.A85338@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021110135614.A85338@locore.ca>; from jake@locore.ca on Sun, Nov 10, 2002 at 01:56:14PM -0500 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Sun, Nov 10, 2002 at 01:56:14PM -0500, Jake Burkholder said words to the effect of; > Apparently, On Sun, Nov 10, 2002 at 08:16:44AM -0800, > Matt Jacob said words to the effect of; > > > mjacob 2002/11/10 08:16:44 PST > > > > Modified files: > > sys/vm uma_dbg.c > > Log: > > Use atomic_set_8 on the us_freelist maps as they are not otherwise > > protected. Furthermore, in some RISC architectures with no normal > > byte operations, the surrounding 3 bytes are also affected by the > > read-modify-write that has to occur. > > > > Revision Changes Path > > 1.9 +2 -2 src/sys/vm/uma_dbg.c > > sparc64 can't do atomic operations on less than 32 bits, this needs > a lock. > fwiw this is in the man page: Certain architectures also provide operations for types smaller than ``int''. char unsigned character short unsigned short integer 8 unsigned 8-bit integer 16 unsigned 16-bit integer These must not be used in MI code because the instructions to implement them efficiently may not be available. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message