summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2004-05-20 18:41:07 +0000
committertmm <tmm@FreeBSD.org>2004-05-20 18:41:07 +0000
commitc212d0a10a9358cf903b6f1d0c27870d950a1e60 (patch)
tree5425bc7c13f1141e922e02da9a52a3c6fe2c1435 /sys/sparc64
parenta4cb820edf68883954aea6ee08e0e3bf25f57684 (diff)
downloadFreeBSD-src-c212d0a10a9358cf903b6f1d0c27870d950a1e60.zip
FreeBSD-src-c212d0a10a9358cf903b6f1d0c27870d950a1e60.tar.gz
In cpu_sched_exit(), we must check vm_refcnt against 0, not 1, since
exit1() decrements the reference count before calling this function.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c
index e2b785a..0ba7b2d 100644
--- a/sys/sparc64/sparc64/vm_machdep.c
+++ b/sys/sparc64/sparc64/vm_machdep.c
@@ -131,7 +131,7 @@ cpu_sched_exit(struct thread *td)
p = td->td_proc;
vm = p->p_vmspace;
- if (vm->vm_refcnt > 1)
+ if (vm->vm_refcnt > 0)
return;
SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
if (pc->pc_vmspace == vm) {
OpenPOWER on IntegriCloud