From owner-cvs-src-old@FreeBSD.ORG Mon Aug 17 16:34:30 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 B7863106568E for ; Mon, 17 Aug 2009 16:34:30 +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 A48218FC61 for ; Mon, 17 Aug 2009 16:34:30 +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 n7HGYUvB080461 for ; Mon, 17 Aug 2009 16:34:30 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7HGYULP080460 for cvs-src-old@freebsd.org; Mon, 17 Aug 2009 16:34:30 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200908171634.n7HGYULP080460@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:33:53 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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:34:30 -0000 attilio 2009-08-17 16:33:53 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern kern_lock.c kern_mutex.c kern_rwlock.c kern_sx.c sys/sys systm.h Log: SVN rev 196336 on 2009-08-17 16:33:53Z by attilio MFC r196334: * 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.144.2.2 +3 -0 src/sys/kern/kern_lock.c 1.213.2.3 +3 -2 src/sys/kern/kern_mutex.c 1.48.2.3 +3 -2 src/sys/kern/kern_rwlock.c 1.67.2.3 +3 -2 src/sys/kern/kern_sx.c 1.276.2.3 +10 -3 src/sys/sys/systm.h