Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Initialize pmap->pm_active and pmap->pm_onproc.
details: https://anonhg.NetBSD.org/src/rev/7a4dfcf12d3e
branches: trunk
changeset: 334973:7a4dfcf12d3e
user: nonaka <nonaka%NetBSD.org@localhost>
date: Fri Dec 19 04:25:52 2014 +0000
description:
Initialize pmap->pm_active and pmap->pm_onproc.
Avoid "panic: kernel diagnostic assertion "!pmap_tlb_intersecting_onproc_p(pm, ti)" failed: file "/usr/src/sys/uvm/pmap/pmap_tlb.c", line 762".
diffstat:
sys/uvm/pmap/pmap.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r c3cc2cde70e5 -r 7a4dfcf12d3e sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Fri Dec 19 04:15:36 2014 +0000
+++ b/sys/uvm/pmap/pmap.c Fri Dec 19 04:25:52 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.4 2014/02/25 15:20:29 martin Exp $ */
+/* $NetBSD: pmap.c,v 1.5 2014/12/19 04:25:52 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.4 2014/02/25 15:20:29 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2014/12/19 04:25:52 nonaka Exp $");
/*
* Manages physical address maps.
@@ -511,6 +511,11 @@
pmap_segtab_init(pmap);
+#ifdef MULTIPROCESSOR
+ kcpuset_create(&pmap->pm_active, true);
+ kcpuset_create(&pmap->pm_onproc, true);
+#endif
+
UVMHIST_LOG(pmaphist, "<- pmap %p", pmap,0,0,0);
return pmap;
}
Home |
Main Index |
Thread Index |
Old Index