Page MenuHomeFreeBSD

riscv/stand: pass boot hart in loader metadata
Needs ReviewPublic

Authored by mhorne on Fri, Feb 7, 4:22 PM.

Details

Reviewers
jrtc27
manu
Group Reviewers
riscv
Summary

Use the RISCV_EFI_BOOT_PROTOCOL to fetch the boot hart ID, and
communicate this to the kernel via new metadata field
(MODINFOMD_BOOT_HART).

If the boot hart is not found this way, fall back to the (now
deprecated) device-tree method.

The assumption that a hart ID can be represented with a 32-bit unsigned
integer is unchanged in the kernel, but from the loader we pass the full
64-bit value. This ensures that this API won't need to change in the
future, should the wider value become necessary.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62294
Build 59178: arc lint + arc unit