freebsd-dev/stand
Emmanuel Vadot c25d9aff46 loader: Add preload operation to fs_ops
When we load an ELF file (kernel or module) we do seek(2) a lot to
parse/load the different sections of the ELF file.
Protocol like TFTP suffers a lot from this as there is no resume or
a way to start the tranfer from a specified offset in the file.
fs_preload is added to help those protocol.
Call preload just after opening the ELF file that we need to load so
the underlying method can cache the hole file and then read/lseek operations
are faster.

Reviewed by:	imp
MFC after:	2 weeks
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D33409
2021-12-16 11:50:38 +01:00
..
arm64 No need to make objects here. 2018-04-27 22:15:18 +00:00
common loader: Add preload operation to fs_ops 2021-12-16 11:50:38 +01:00
defaults loader: Set twiddle globaldiv to 16 by default 2021-09-28 15:24:02 -07:00
efi loader: framebuffer should only be written into 2021-12-11 13:25:35 +02:00
fdt loader: Fix dtb loading 2021-07-05 15:53:08 +02:00
ficl ficl: Fix a typo in a comment 2021-11-30 10:36:29 +01:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader: support.4th resets the read buffer incorrectly 2021-07-28 13:50:38 -06:00
i386 loader: narrow the scope of gfx frame buffer wrt tg supported kernels 2021-12-14 15:27:47 -07:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kshim Fix build of stand/usb . 2021-04-12 16:13:33 +02:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libofw powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
libsa loader: Add preload operation to fs_ops 2021-12-16 11:50:38 +01:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua lualoader: fix the autoboot_delay countdown message 2021-10-26 11:24:29 -05:00
man loader_lua.8: Fix first version 2021-09-29 17:18:51 -06:00
powerpc stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot stand/uboot: reorg 2021-12-14 21:09:53 -07:00
usb stand: remove mips support 2021-12-10 11:05:31 -07:00
userboot stand/userboot: Kill set but unused variables 2021-12-15 19:48:40 -07:00
defs.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
fdt.mk
ficl.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
loader.mk loader: narrow the scope of gfx frame buffer wrt tg supported kernels 2021-12-14 15:27:47 -07:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile stand/uboot: reorg 2021-12-14 21:09:53 -07:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00