Deleted Added
full compact
41c41
< * $FreeBSD: head/sys/i386/include/pmap.h 130399 2004-06-13 03:44:11Z alc $
---
> * $FreeBSD: head/sys/i386/include/pmap.h 130573 2004-06-16 07:03:15Z alc $
137a138,139
> #include <sys/_lock.h>
> #include <sys/_mutex.h>
278a281
> struct mtx pm_mtx;
294a298,308
>
> #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx)
> #define PMAP_LOCK_ASSERT(pmap, type) \
> mtx_assert(&(pmap)->pm_mtx, (type))
> #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx)
> #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, "pmap", \
> NULL, MTX_DEF)
> #define PMAP_LOCKED(pmap) mtx_owned(&(pmap)->pm_mtx)
> #define PMAP_MTX(pmap) (&(pmap)->pm_mtx)
> #define PMAP_TRYLOCK(pmap) mtx_trylock(&(pmap)->pm_mtx)
> #define PMAP_UNLOCK(pmap) mtx_unlock(&(pmap)->pm_mtx)