Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think this is right, but I can't see why we are calling ofw_bus_gen_setup_devinfo() at all. simplebus_add_device() -> simplebus_setup_dinfo() -> ofw_bus_gen_setup_devinfo() does the same thing. I suspect that we could remove the setup_devinfo() call and check the return value of simplebus_add_device() instead.
Comment Actions
No objection to this, I'm just not sure how I can test the code so that I can implement this.
Comment Actions
The easiest way might be to simply try booting a riscv kernel with this change in QEMU: https://wiki.freebsd.org/riscv/QEMU
Comment Actions
Could you please describe your test? Did you use a risc-v kernel and verify that this code path gets executed?
Comment Actions
Yes, I booted a riscv kernel and added a few printfs to make sure the code gets executed.