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
This commit is contained in:
Konstantin Belousov 2018-08-22 14:58:52 +00:00
parent cefee54838
commit 614a9ce31a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338202

View File

@ -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. */