HomeFreeBSD

Add support for HiFive Unleashed -- the board with a multi-core RISC-V SoC

Description

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.

Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D20225

Details

Provenance
brAuthored on
Reviewer
markj
Differential Revision
D20225: HiFive Unleashed support
Parents
rS347513: fusefs: Report the number of available ops in kevent(2)
Branches
Unknown
Tags
Unknown