Page MenuHomeFreeBSD

Small fix to CPU Compatibility Identification
ClosedPublic

Authored by nickisobrien_gmail.com on Mon, Sep 9, 6:24 PM.

Details

Summary

fdt_is_compatible_strict() inspects the first compatible property.
We need to inspect the following properties for 'riscv'.
ofw_bus_node_is_compatible() does a recursive search.

This patch fixes "Can't find CPU" error message when bootverbose = true.

Sponsored by: Axiado

Test Plan

Tested on the SiFive Unleashed board and Qemu.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

philip accepted this revision.Tue, Sep 10, 3:11 AM
This revision is now accepted and ready to land.Tue, Sep 10, 3:11 AM
kristof accepted this revision.Wed, Sep 11, 4:13 PM
This revision was automatically updated to reflect the committed changes.