Date: Sun, 10 May 2015 09:09:08 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282711 - head/sys/amd64/amd64 Message-ID: <201505100909.t4A998pJ002565@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun May 10 09:09:07 2015 New Revision: 282711 URL: https://svnweb.freebsd.org/changeset/base/282711 Log: Initialize pcids array for the proc0 pmap. Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Modified: head/sys/amd64/amd64/pmap.c Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Sun May 10 09:05:57 2015 (r282710) +++ head/sys/amd64/amd64/pmap.c Sun May 10 09:09:07 2015 (r282711) @@ -2108,6 +2108,7 @@ pmap_unuse_pt(pmap_t pmap, vm_offset_t v void pmap_pinit0(pmap_t pmap) { + int i; PMAP_LOCK_INIT(pmap); pmap->pm_pml4 = (pml4_entry_t *)PHYS_TO_DMAP(KPML4phys); @@ -2118,6 +2119,10 @@ pmap_pinit0(pmap_t pmap) TAILQ_INIT(&pmap->pm_pvchunk); bzero(&pmap->pm_stats, sizeof pmap->pm_stats); pmap->pm_flags = pmap_flags; + CPU_FOREACH(i) { + pmap->pm_pcids[i].pm_pcid = PMAP_PCID_NONE; + pmap->pm_pcids[i].pm_gen = 0; + } } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505100909.t4A998pJ002565>