freebsd-skq/sys/boot/common
Peter Grehan d971cd47f6 Fix incorrect reading of 32-bit modinfo by 64-bit loaders.
The various structures in the mod_metadata set of a FreeBSD kernel and
modules contain pointers. The FreeBSD loader correctly deals with a
mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc
loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with
the inverse case where a 64-bit loader was loading a 32-bit kernel.

Reported by:	ktcallbox@gmail.com with a bhyve/i386 and ZFS root install
Differential Revision:	https://reviews.freebsd.org/D1129
Reviewed by:	neel, jhb
MFC after:	1 week
2014-11-11 22:03:11 +00:00
..
bcache.c
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 Rename command_unload() to unload() and re-implement command_unload() 2014-08-06 00:06:25 +00:00
commands.c
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
dev_net.c
dev_net.h
devopen.c
disk.c Rework bootparttest to use more code from sys/boot. 2014-10-05 06:04:47 +00:00
disk.h Fix comment. 2014-10-08 12:33:31 +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
help.common
install.c Change the order of the arguments to file_loadraw(). They were swapped 2014-11-01 18:51:48 +00:00
interp_backslash.c
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
interp.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
isapnp.c
isapnp.h
load_elf32_obj.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf32.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf64_obj.c
load_elf64.c
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
load_elf.c Fix incorrect reading of 32-bit modinfo by 64-bit loaders. 2014-11-11 22:03:11 +00:00
loader.8 Sweep man pages replacing ad -> ada. 2013-10-01 18:41:53 +00:00
ls.c
Makefile.inc add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages 2014-09-15 06:21:28 +00:00
md.c
merge_help.awk
misc.c In alloc_pread() and kern_pread(), print errors only when DEBUG is 2014-11-05 04:18:41 +00:00
module.c When built with FDT support, add /boot/dtb to the list of search directories. 2014-09-03 21:25:36 +00:00
newvers.sh
panic.c
part.c Add a bit more debug messages. 2014-10-05 06:00:22 +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
reloc_elf32.c
reloc_elf64.c
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
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
zfsloader.8 add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages 2014-09-15 06:21:28 +00:00