HomeFreeBSD

amd64: rework PCPU allocation

Description

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

Details

Provenance
kibAuthored on Aug 24 2019, 3:31 PM
Parents
rGec9662fe61c8: Do not constrain allocations for doublefault, boot, and mce stacks.
Branches
Unknown
Tags
Unknown

Event Timeline