Rather than hard-coding the number of CPUs to 2, look up the PVPE field
in MVPConf0, as the valid VPE numbers are from 0 to PVPE inclusive.
Is booting on QEMU with more than 2 cores (or exactly one, which is also not equal to 2!) and observing them all being brought up sufficient? If so I will update the revision's description.
|218 ↗||(On Diff #46464)|
Nothing it would seem; it's been there and unused since the file was created in r305664. I'll remove it.
Boots to userspace with -smp 4 on QEMU:
... Preloaded elf kernel "kernel" at 0xffffffff808c00f8. real memory = 2147483648 (2097152K bytes) Physical memory chunk(s): 0x00a06000 - 0x0fffffff, 257925120 bytes (62970 pages) 0x90000000 - 0xfcd64fff, 1825984512 bytes (445797 pages) avail memory = 2074578944 (1978MB) Waiting for cpu1 to start CPU 1 started AP #1 started! Waiting for cpu2 to start CPU 2 started AP #2 started! Waiting for cpu3 to start CPU 3 started AP #3 started! FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs ...