From owner-cvs-src-old@FreeBSD.ORG Mon Aug 17 16:18:10 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1831710656C2 for ; Mon, 17 Aug 2009 16:18:10 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C42968FC6C for ; Mon, 17 Aug 2009 16:18:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7HGI9oh079244 for ; Mon, 17 Aug 2009 16:18:09 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7HGI91O079243 for cvs-src-old@freebsd.org; Mon, 17 Aug 2009 16:18:09 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200908171618.n7HGI91O079243@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Mon, 17 Aug 2009 16:17:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_lock.c kern_mutex.c kern_rwlock.c kern_sx.c src/sys/sys systm.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 16:18:10 -0000 attilio 2009-08-17 16:17:21 UTC FreeBSD src repository Modified files: sys/kern kern_lock.c kern_mutex.c kern_rwlock.c kern_sx.c sys/sys systm.h Log: SVN rev 196334 on 2009-08-17 16:17:21Z by attilio * Change the scope of the ASSERT_ATOMIC_LOAD() from a generic check to a pointer-fetching specific operation check. Consequently, rename the operation ASSERT_ATOMIC_LOAD_PTR(). * Fix the implementation of ASSERT_ATOMIC_LOAD_PTR() by checking directly alignment on the word boundry, for all the given specific architectures. That's a bit too strict for some common case, but it assures safety. * Add a comment explaining the scope of the macro * Add a new stub in the lockmgr specific implementation Tested by: marcel (initial version), marius Reviewed by: rwatson, jhb (comment specific review) Approved by: re (kib) Revision Changes Path 1.145 +3 -0 src/sys/kern/kern_lock.c 1.215 +3 -2 src/sys/kern/kern_mutex.c 1.50 +3 -2 src/sys/kern/kern_rwlock.c 1.69 +3 -2 src/sys/kern/kern_sx.c 1.278 +10 -3 src/sys/sys/systm.h