]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r196334:
authorattilio <attilio@FreeBSD.org>
Mon, 17 Aug 2009 16:33:53 +0000 (16:33 +0000)
committerattilio <attilio@FreeBSD.org>
Mon, 17 Aug 2009 16:33:53 +0000 (16:33 +0000)
commit4f227995a933a591542082ccf82194b37e83c704
tree2fd555b80ee624742213f992f037c02abf82066c
parent1358a95135387e875c8c0edd09f6c9a250c0f7e3
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)
sys/kern/kern_lock.c
sys/kern/kern_mutex.c
sys/kern/kern_rwlock.c
sys/kern/kern_sx.c
sys/sys/systm.h