summaryrefslogtreecommitdiffstats
path: root/sys/boot/fdt/fdt_loader_cmd.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-03-01 19:02:00 +0000
committerian <ian@FreeBSD.org>2014-03-01 19:02:00 +0000
commit3cccc93a2647c00f24f62d4f88919ee60433d0bf (patch)
tree9c4d28d096e50543af30416154bce899de088f2b /sys/boot/fdt/fdt_loader_cmd.c
parentc980900e52d22edcb779ce36a512c64a293c35ea (diff)
downloadFreeBSD-src-3cccc93a2647c00f24f62d4f88919ee60433d0bf.zip
FreeBSD-src-3cccc93a2647c00f24f62d4f88919ee60433d0bf.tar.gz
Prevent fdt data loaded from a file from overwriting the kernel environment,
by having uboot_autoload() do the fdt setup (which may load a file) rather than waiting until we're actually in the process of launching the kernel. As part of making this happen... - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when MK_FDT is set. - Make fdt_setup_fdtb() public. - Declare public fdt_whatever() functions in a header instead of using scattered extern decls in .c files.
Diffstat (limited to 'sys/boot/fdt/fdt_loader_cmd.c')
-rw-r--r--sys/boot/fdt/fdt_loader_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/fdt/fdt_loader_cmd.c b/sys/boot/fdt/fdt_loader_cmd.c
index 1d74d62..b54a6b4 100644
--- a/sys/boot/fdt/fdt_loader_cmd.c
+++ b/sys/boot/fdt/fdt_loader_cmd.c
@@ -279,7 +279,7 @@ fdt_load_dtb_file(const char * filename)
return (0);
}
-static int
+int
fdt_setup_fdtp()
{
struct preloaded_file *bfp;
OpenPOWER on IntegriCloud