diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-12-16 08:23:14 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-12-16 08:23:14 +0000 |
commit | 2ee50bd8693ddeca86111035ac90cb3c4d85055a (patch) | |
tree | a879390268e037d76bf2eeececf121502a344106 | |
parent | 71d9f62bcafce71757437bba4ffcde0eb6dd4009 (diff) | |
download | FreeBSD-src-2ee50bd8693ddeca86111035ac90cb3c4d85055a.zip FreeBSD-src-2ee50bd8693ddeca86111035ac90cb3c4d85055a.tar.gz |
tte_hash_resize implicitly expects to be protected from preemption -
put under spinlock_enter
-rw-r--r-- | sys/sun4v/sun4v/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c index d8b8f4d..bfe73a6 100644 --- a/sys/sun4v/sun4v/pmap.c +++ b/sys/sun4v/sun4v/pmap.c @@ -2165,8 +2165,8 @@ pmap_tte_hash_resize(pmap_t pmap) { tte_hash_t old_th = pmap->pm_hash; - pmap->pm_hash = tte_hash_resize(pmap->pm_hash); spinlock_enter(); + pmap->pm_hash = tte_hash_resize(pmap->pm_hash); if (curthread->td_proc->p_numthreads != 1) pmap_ipi(pmap, tl_ttehashupdate, pmap->pm_context, pmap->pm_hashscratch); |