Check that fdt hart id matches boot hart id before associating an fdt
authorjsg <jsg@openbsd.org>
Tue, 4 May 2021 06:32:58 +0000 (06:32 +0000)
committerjsg <jsg@openbsd.org>
Tue, 4 May 2021 06:32:58 +0000 (06:32 +0000)
commit862607c08452591943a6422e312a1baa557180fc
treec619167ecb510cfadea7dbb4ab5f8e29238a39c9
parent0f2255fcf6ad0f8f9c3d05a414f4bbd17df168d1
Check that fdt hart id matches boot hart id before associating an fdt
node with the primary cpu.

Prompted by the polarfire icicle where hart 0 is an mmuless e51 core.

ok drahn@ mlarkin@
sys/arch/riscv64/dev/mainbus.c
sys/arch/riscv64/riscv64/machdep.c