HomeFreeBSD

Ensure the boot CPU is CPU 0 on arm64

Description

Ensure the boot CPU is CPU 0 on arm64

We assume the boot CPU is always CPU 0 on arm64. To allow for this reserve
cpuid 0 for the boot CPU in the ACPI and FDT cases but otherwise start the
CPU as normal. We then check for the boot CPU in start_cpu and return as if
it was started.

While here extract the FDT CPU init code into a new function to simplify
cpu_mp_start and return FALSE from start_cpu when the CPU fails to start.

Reviewed by: mmel
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D27497

Details

Provenance
andrewAuthored on
Reviewer
mmel
Differential Revision
D27497: Ensure the boot CPU is CPU 0 on arm64
Parents
rS368415: Properly define the bool type in the BSD kernel shim.
Branches
Unknown
Tags
Unknown