]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: fdt: Add fdt_is_setup function
authormanu <manu@FreeBSD.org>
Thu, 25 Apr 2019 20:08:43 +0000 (20:08 +0000)
committermanu <manu@FreeBSD.org>
Thu, 25 Apr 2019 20:08:43 +0000 (20:08 +0000)
commitc05cec5fde9d6345f300cc7adbb0eaba5748f362
treee979997ac72c68c0749864a5497f860ae58b5f9b
parent6d03e25bdbfb2615624b2d2bb86a7b064c765aca
loader: fdt: Add fdt_is_setup function

When efi_autoload is called it will call fdt_setup_fdtp which setup the
dtb and overlays. If a user already loaded at dtb or overlays or just
printed the efi provided dtb, this will re-setup everything and also
re-applying the overlays.
Test that everything is setup before doing it again.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D20059
stand/efi/loader/autoload.c
stand/fdt/fdt_loader_cmd.c
stand/fdt/fdt_platform.h