Date: Mon, 17 Aug 2009 16:17:21 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_lock.c kern_mutex.c kern_rwlock.c kern_sx.c src/sys/sys systm.h Message-ID: <200908171618.n7HGI91O079243@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908171618.n7HGI91O079243>
