FreeBSD/src 10ff5ee (r351457)sys/amd64/amd64 machdep.c pmap.c, sys/amd64/include counter.h md_var.h

amd64: rework PCPU allocation

Move pcpu KVA out of .bss into dynamically allocated VA at
pmap_bootstrap().  This avoids demoting superpage mapping .data/.bss.
Also it makes possible to use pmap_qenter() for installation of
domain-local pcpu page on NUMA configs.

Refactor pcpu and IST initialization by moving it to helper functions.

Reviewed by:    markj
Tested by:      pho
Discussed with: jeff
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D21320
DeltaFile
+62-40sys/amd64/amd64/machdep.c
+21-2sys/amd64/amd64/pmap.c
+3-2sys/amd64/include/counter.h
+2-2sys/amd64/amd64/mp_machdep.c
+3-0sys/amd64/include/md_var.h
+91-465 files

UnifiedSplitRaw