]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351457 (by kib): amd64: rework PCPU allocation
authorAlexander Motin <mav@FreeBSD.org>
Thu, 24 Oct 2019 21:10:09 +0000 (21:10 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 24 Oct 2019 21:10:09 +0000 (21:10 +0000)
commit499bd1995aa86a112d58928e8e08a844f8aebbd9
tree640cc9fb296c70fbc4184f79e34b7a073aa6c216
parentc60ff81a97a0c3d0a911eca7b48eaf056c733ace
MFC r351457 (by kib): 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.
sys/amd64/amd64/machdep.c
sys/amd64/amd64/mp_machdep.c
sys/amd64/amd64/pmap.c
sys/amd64/include/counter.h
sys/amd64/include/md_var.h