Give loaders more control over the Forth initialization process. In
authormarcel <marcel@FreeBSD.org>
Sun, 27 Jul 2014 16:12:51 +0000 (16:12 +0000)
committermarcel <marcel@FreeBSD.org>
Sun, 27 Jul 2014 16:12:51 +0000 (16:12 +0000)
commit42335f4752fa57cf15318a09d3cfc118bf559b08
tree3fdb72c26ee68a70ec6f2ed8fd97f6d03fbeb233
parent32661c5bec8b8ab836158f7f46314c35aa7e5fd5
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.
14 files changed:
sys/boot/amd64/efi/main.c
sys/boot/common/bootstrap.h
sys/boot/common/interp.c
sys/boot/common/interp_forth.c
sys/boot/i386/libi386/libi386.h
sys/boot/i386/libi386/pxe.c
sys/boot/i386/loader/main.c
sys/boot/mips/beri/loader/main.c
sys/boot/ofw/common/main.c
sys/boot/pc98/loader/main.c
sys/boot/powerpc/ps3/main.c
sys/boot/sparc64/loader/main.c
sys/boot/uboot/common/main.c
sys/boot/userboot/userboot/main.c