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)
Thu, Apr 18, 3:21 PM
Unknown Object (File)
Tue, Apr 16, 12:03 PM
Unknown Object (File)
Mar 22 2024, 9:27 PM
Unknown Object (File)
Mar 22 2024, 9:27 PM
Unknown Object (File)
Mar 22 2024, 9:27 PM
Unknown Object (File)
Mar 9 2024, 1:23 PM
Unknown Object (File)
Mar 7 2024, 4:54 PM
Unknown Object (File)
Jan 31 2024, 5:20 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