HomeFreeBSD

MFC r346021:

Description

MFC r346021:
RISC-V: initialize pcpu slightly earlier

In certain scenarios, it is possible for PCPU data to be
accessed before it has been initialized (e.g. during printf
if the kernel was built with the TSLOG option).

Initialize the PCPU pointer for hart 0 at the beginning of
initriscv() rather than near the end.

Approved by: markj (mentor)

Details

Provenance
mhorneAuthored on
Parents
rS349483: libelftc: add RISC-V bfd targets
Branches
Unknown
Tags
Unknown