HomeFreeBSD

MFC r347514:

Description

MFC r347514:

Add support for HiFive Unleashed -- the board with a multi-core RISC-V SoC
from SiFive, Inc.

The first core on this SoC (hart 0) is a 64-bit microcontroller.

o Pick a hart to run boot process using hart lottery.

This allows to exclude hart 0 from running the boot process.
(BBL releases hart 0 after the main harts, so it never wins the lottery).

o Renumber CPUs early on boot.

Exclude non-MMU cores. Store the original hart ID in struct pcpu. This
allows to find out the correct destination for IPIs and remote sfence
calls.

Thanks to SiFive, Inc for the board provided.

Sponsored by: DARPA, AFRL

Details

Provenance
brAuthored on
Parents
rS348648: MFC r340028 (by jhb):
Branches
Unknown
Tags
Unknown