Page MenuHomeFreeBSD

stand/fdt: Make fdt_overlay_apply signature-compatible with libfdt
ClosedPublic

Authored by kevans on Dec 30 2017, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 27, 4:47 AM
Unknown Object (File)
Sat, Jul 19, 9:19 AM
Unknown Object (File)
Sat, Jul 5, 11:44 AM
Unknown Object (File)
Sat, Jul 5, 11:16 AM
Unknown Object (File)
Jul 3 2025, 8:37 AM
Unknown Object (File)
Jun 15 2025, 12:15 PM
Unknown Object (File)
Jun 12 2025, 5:34 PM
Unknown Object (File)
Jun 11 2025, 4:08 AM
Subscribers

Details

Summary

libfdt will assume a writable fdt overlay blob has been passed in, so make ours compatible to allow easier review when we try to drop libfdt into place. overlay from the calling context is writable, making it safe to simply rip out everything related to copying the overlay blob in fdt_overlay_apply.

I note here that we still have problems: fdt_overlay_apply, both our version and libfdt's, may fail and have already clobbered the base fdt to some extent. Future work will make sure we don't apply a potentially bogus fdt, instead discarding the base fdt if we had an error.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable