summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-07-27 16:12:51 +0000
committermarcel <marcel@FreeBSD.org>2014-07-27 16:12:51 +0000
commit42335f4752fa57cf15318a09d3cfc118bf559b08 (patch)
tree3fdb72c26ee68a70ec6f2ed8fd97f6d03fbeb233 /sys/boot/ofw
parent32661c5bec8b8ab836158f7f46314c35aa7e5fd5 (diff)
downloadFreeBSD-src-42335f4752fa57cf15318a09d3cfc118bf559b08.zip
FreeBSD-src-42335f4752fa57cf15318a09d3cfc118bf559b08.tar.gz
Give loaders more control over the Forth initialization process. In
particular, allow loaders to define the name of the RC script the interpreter needs to use. Use this new-found control to have the PXE loader (when compiled with TFTP support and not NFS support) read from ${bootfile}.4th, where ${bootfile} is the name of the file fetched by the PXE firmware. The normal startup process involves reading the following files: 1. /boot/boot.4th 2. /boot/loader.rc or alternatively /boot/boot.conf When these come from a FreeBSD-defined file system, this is all good. But when we boot over the network, subdirectories and fixed file names are often painful to administrators and there's really no way for them to change the behaviour of the loader. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r--sys/boot/ofw/common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/common/main.c b/sys/boot/ofw/common/main.c
index 940ca63..eb8ae0c 100644
--- a/sys/boot/ofw/common/main.c
+++ b/sys/boot/ofw/common/main.c
@@ -162,7 +162,7 @@ main(int (*openfirm)(void *))
archsw.arch_readin = ofw_readin;
archsw.arch_autoload = ofw_autoload;
- interact(); /* doesn't return */
+ interact(NULL); /* doesn't return */
OF_exit();
OpenPOWER on IntegriCloud