Page MenuHomeFreeBSD

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

Authored by mhorne on Fri, Feb 7, 4:22 PM.
Tags
None
Referenced Files
F110101802: D48887.diff
Thu, Feb 13, 3:34 PM
F110039412: D48887.diff
Wed, Feb 12, 8:38 PM
Unknown Object (File)
Tue, Feb 11, 10:26 PM
Unknown Object (File)
Sun, Feb 9, 12:09 AM
Subscribers

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 62293
Build 59177: arc lint + arc unit