Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap pmap->pm_active and pmap->pm_onproc must be des...
details: https://anonhg.NetBSD.org/src/rev/e8c2cd00f007
branches: trunk
changeset: 335032:e8c2cd00f007
user: nonaka <nonaka%NetBSD.org@localhost>
date: Mon Dec 22 11:11:34 2014 +0000
description:
pmap->pm_active and pmap->pm_onproc must be destroyed.
diffstat:
sys/uvm/pmap/pmap.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 74c4298e0e7d -r e8c2cd00f007 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Mon Dec 22 09:42:45 2014 +0000
+++ b/sys/uvm/pmap/pmap.c Mon Dec 22 11:11:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.5 2014/12/19 04:25:52 nonaka Exp $ */
+/* $NetBSD: pmap.c,v 1.6 2014/12/22 11:11:34 nonaka Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2014/12/19 04:25:52 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.6 2014/12/22 11:11:34 nonaka Exp $");
/*
* Manages physical address maps.
@@ -542,6 +542,11 @@
pmap_tlb_asid_release_all(pmap);
pmap_segtab_destroy(pmap, NULL, 0);
+#ifdef MULTIPROCESSOR
+ kcpuset_destroy(&pmap->pm_active);
+ kcpuset_destroy(&pmap->pm_onproc);
+#endif
+
pool_put(&pmap_pmap_pool, pmap);
kpreempt_enable();
Home |
Main Index |
Thread Index |
Old Index