Initialize the static kernel boot environment, which makes the riscv boot process honor the environment set via the kernel config file
Sponsored by: Axiado
Differential D25034
riscv: honor the environment set via the kernel config file mhorne on May 28 2020, 6:26 AM. Authored by Tags None Referenced Files
Details
Initialize the static kernel boot environment, which makes the riscv boot process honor the environment set via the kernel config file Sponsored by: Axiado Compile & boot a riscv system/kernel, with some read only tunables set in the kernel config file, e.g. envvar "net.fibs=5" envvar "net.pf.source_nodes_hashsize=16384" Verify the read only tunables' values have been correctly applied.
Diff Detail
Event TimelineComment Actions This looks good -- and is known to work. The size of the environment should probably be a constant rather than a magic number though.
Comment Actions I've discovered this change should have gone in before rS363345, and is now required to avoid an early panic when trying to parse kenv variables from bootargs. Taking over the review so I can update with a rebased version. Comment Actions It does. I find this placement slightly more intuitive, but if you disagree then I can move it to that function. |