]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure the boot CPU is CPU 0 on arm64
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 7 Dec 2020 17:54:49 +0000 (17:54 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 7 Dec 2020 17:54:49 +0000 (17:54 +0000)
commitd2d350369e789a79726f4736ee191434d490933e
tree824eec25808b157efa818ef783605c4b6bad9eb5
parenteb2f5fa4dcbf452b94f8431e51d224f0315ad9a0
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
sys/arm64/arm64/mp_machdep.c