RTEMS | bsps/riscv: Checked conditions for FDT pointer (!1057)
Gedare Bloom (@gedare)
gitlab at rtems.org
Thu Feb 12 17:35:20 UTC 2026
Gedare Bloom commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1057#note_142530
I would not do these checks on every call. Since this basically boils down to calling `fdt_check_header()` I would add something to call `bsp_fdt_get()` and then `fdt_check_header()` during boot, probably as an `RTEMS_SYSINIT_ITEM`. This seems to be something that would be shared across architectures and should be done in a generic way, rather than in a BSP-specific way, since other architectures also use FDT.
I think this is also already done in `rtems_ofw_init`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1057#note_142530
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260212/0d79cffb/attachment.htm>
More information about the bugs
mailing list