HomeFreeBSD

amd64: stop doing special allocation for the AP startup trampoline

Description

amd64: stop doing special allocation for the AP startup trampoline

There is no reason now why do we need to allocate trampoline page very
early in the boot process. The only requirement for the page is that
it is below 1M to be usable by the real mode during init. This can be
handled by vm_alloc_contig() when we do the startup.

Also assert that startup trampoline fits into single page. In principle
we can do multi-page allocation if needed, but it is not.

Move the alloc_ap_trampoline() function and the boot_address variable to
i386/mp_machdep.c. Keep existing mechanism of early alloc on i386.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D31343

Details

Provenance
kibAuthored on Jul 29 2021, 12:22 AM
Reviewer
markj
Differential Revision
D31343: amd64: stop doing special allocation for the AP startup trampoline
Parents
rG59b83c47e215: awk: Note awk upgrades.
Branches
Unknown
Tags
Unknown