-/* $OpenBSD: pmap.h,v 1.8 2014/01/30 18:16:41 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.9 2014/12/17 15:27:17 deraadt Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
paddr_t pm_psegtab; /* pa of above */
int pm_refcount; /* reference count */
- struct simplelock pm_lock;
struct pmap_statistics pm_stats; /* pmap statistics */
};
-/* $OpenBSD: pmap.c,v 1.7 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: pmap.c,v 1.8 2014/12/17 15:27:17 deraadt Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
*
/*
* Initialize kernel pmap.
*/
- simple_lock_init(&pmap_kernel()->pm_lock);
pmap_kernel()->pm_refcount = 1;
/*
pmap = pool_get(&pmappool, PR_WAITOK | PR_ZERO);
pmap->pm_refcount = 1;
- simple_lock_init(&pmap->pm_lock);
/*
* Allocate the page directory.
DPRINTF(PDB_DESTROY, ("pmap_destroy(%p)\n", pmap));
- simple_lock(&pmap->pm_lock);
count = --pmap->pm_refcount;
- simple_unlock(&pmap->pm_lock);
if (count == 0) {
pmap_release(pmap);
pool_put(&pmappool, pmap);
{
DPRINTF(PDB_REFERENCE, ("pmap_reference(%p)\n", pmap));
- simple_lock(&pmap->pm_lock);
pmap->pm_refcount++;
- simple_unlock(&pmap->pm_lock);
}
/*