opnsense-src/sys/boot/common
Marcel Moolenaar 7fe0b4f160 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.
2014-07-27 16:12:51 +00:00
..
bcache.c Use the correct printf specifier. 2004-10-03 16:34:01 +00:00
boot.c zfs boot: try to set vfs.root.mountfrom from currdev as a fallback 2012-05-12 09:07:41 +00:00
bootstrap.h Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
commands.c Close a file descriptor leak in an error case. 2009-10-28 10:06:27 +00:00
console.c boot/console: handle consoles that fail to probe 2012-10-06 20:01:17 +00:00
crc32.c Remove second consts in r233288 in order to appease C++ compilers. 2012-03-26 18:22:04 +00:00
crc32.h - Split code shared by almost any boot loader into separate files and 2010-09-24 19:49:12 +00:00
dev_net.c - Add code allowing a network device to only be open and closed once 2010-01-09 21:23:39 +00:00
dev_net.h
devopen.c Show info about net devices in loader's 'lsdev' command. While there fix style. 2008-09-03 17:41:44 +00:00
disk.c When loader tries to open GPT partition, but partition table is not GPT, 2012-10-22 11:01:43 +00:00
disk.h Add the flags parameter to the disk_open() function and DISK_F_NOCACHE 2012-10-21 12:14:58 +00:00
gpt.c Read backup GPT header from the last LBA only when primary GPT header and 2012-04-12 12:37:53 +00:00
gpt.h - Split code shared by almost any boot loader into separate files and 2010-09-24 19:49:12 +00:00
help.common Replace a rarely used "depuration" with "debugging". 2006-10-13 20:48:17 +00:00
interp.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
interp_backslash.c Use __FBSDID(). 2003-08-25 23:30:41 +00:00
interp_forth.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
interp_parse.c Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
isapnp.c Use __FBSDID(). 2003-08-25 23:30:41 +00:00
isapnp.h
load_elf.c Attach the elf section headers to the loaded kernel as metadata, so 2013-03-10 00:43:01 +00:00
load_elf32.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf32_obj.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf64.c Use __FBSDID(). 2003-08-25 23:30:41 +00:00
load_elf64_obj.c Add the loader side of support for preloading ELF relocatable object 2004-08-29 00:48:42 +00:00
load_elf_obj.c Don't return an error if a kld does not contain any modules (e.g. a 2012-06-20 21:06:51 +00:00
loader.8 Sweep man pages replacing ad -> ada. 2013-10-01 18:41:53 +00:00
ls.c Use __FBSDID(). 2003-08-25 23:30:41 +00:00
Makefile.inc Remove ia64. 2014-07-07 00:27:09 +00:00
md.c Add support for memory disk (md). The size of the memory disk 2009-12-13 01:20:32 +00:00
merge_help.awk Ignore a sub-topic match if it is inside the command description. 2006-09-28 19:06:20 +00:00
misc.c Setting a variable to the same value twice doesn't actually make it 2008-08-04 06:39:52 +00:00
module.c Change file_loadraw() from static to public. Change the order of its 2014-02-22 22:03:26 +00:00
newvers.sh When building a kernel or the loader, let the hostname be overridden 2004-07-01 06:40:12 +00:00
panic.c Fix WARNS=2 warnings. 2006-09-29 20:57:38 +00:00
part.c When loader(8) inspects MBR, it chooses GPT as main partition table, 2014-03-21 09:29:01 +00:00
part.h Create the interface to work with various partition tables from the 2012-08-05 11:29:44 +00:00
pnp.c Garbage collect the code for auto-loading modules based on ISAPNP IDs, 2007-01-07 22:25:45 +00:00
reloc_elf.c Implement elfN(reloc) for powerpc. With this change the kernel is now able to 2012-09-21 18:21:31 +00:00
reloc_elf32.c Separate out the ELF relocation code from the ELF loader, and add 2004-08-28 23:03:05 +00:00
reloc_elf64.c Separate out the ELF relocation code from the ELF loader, and add 2004-08-28 23:03:05 +00:00
ufsread.c Apparently some of the i386 boot blocks are so close to full that adding 2014-04-13 14:50:52 +00:00
util.c strncmp for boot code: fix an off by one error 2013-04-05 09:14:30 +00:00
util.h Rename bcpy() macro to bcopy(). 2011-02-27 12:25:47 +00:00