Date: Wed, 22 Aug 2018 14:58:52 +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: r338202 - head/sys/amd64/amd64 Message-ID: <201808221458.w7MEwqAY018178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Aug 22 14:58:52 2018 New Revision: 338202 URL: https://svnweb.freebsd.org/changeset/base/338202 Log: Skip PMAP_PCID_KERN + 1 PCPU pcid_next value on APs as well. r337838 did it for BSP. Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/sys/amd64/amd64/mp_machdep.c Modified: head/sys/amd64/amd64/mp_machdep.c ============================================================================== --- head/sys/amd64/amd64/mp_machdep.c Wed Aug 22 14:33:57 2018 (r338201) +++ head/sys/amd64/amd64/mp_machdep.c Wed Aug 22 14:58:52 2018 (r338202) @@ -298,8 +298,9 @@ init_secondary(void) pc->pc_gs32p = &gdt[NGDT * cpu + GUGS32_SEL]; pc->pc_ldt = (struct system_segment_descriptor *)&gdt[NGDT * cpu + GUSERLDT_SEL]; + /* See comment in pmap_bootstrap(). */ + pc->pc_pcid_next = PMAP_PCID_KERN + 2; pc->pc_pcid_gen = 1; - pc->pc_pcid_next = PMAP_PCID_KERN + 1; common_tss[cpu].tss_rsp0 = 0; /* Save the per-cpu pointer for use by the NMI handler. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808221458.w7MEwqAY018178>